We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
same as #2280
React version: v18.2.0
https://github.com/bhbs/recoil-repro-2298
import { atom, useRecoilValue } from "recoil"; const Atom = atom({ key: "someKey", default: NaN, }); function App() { const recoilValue = useRecoilValue(Atom); return <div>{String(recoilValue)}</div>; } export default App;
Rendered successfully
State should be compared using Object.is
Object.is
Recoil/packages/recoil/adt/Recoil_Loadable.js
Lines 52 to 55 in c1b97f3
should be
return ( // $FlowFixMe[prop-missing] other.state === this.state && Object.is(other.contents, this.contents) );
Problems in similar situations
The text was updated successfully, but these errors were encountered:
NaN
any possible fix you suggest , I will solve
Sorry, something went wrong.
No branches or pull requests
same as #2280
React version: v18.2.0
Reproduction
https://github.com/bhbs/recoil-repro-2298
Current behavior
Expected behavior
Rendered successfully
How to fix
State should be compared using
Object.is
Recoil/packages/recoil/adt/Recoil_Loadable.js
Lines 52 to 55 in c1b97f3
should be
Note
Problems in similar situations
The text was updated successfully, but these errors were encountered: