Skip to content
New issue

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

Possible regression of 2.6.4 with derived atoms #2559

Closed
geril2207 opened this issue May 17, 2024 · 3 comments · Fixed by #2534
Closed

Possible regression of 2.6.4 with derived atoms #2559

geril2207 opened this issue May 17, 2024 · 3 comments · Fixed by #2534

Comments

@geril2207
Copy link

geril2207 commented May 17, 2024

Summary

Here is a problem, where moduleInputParamsAtom in Node component returns null after promise has resolved, but should return an object. But another derived atom isSomeModuleAtom returns correct value.
2.6.3 and lower returns correct value for moduleInputParamsAtom. With regression you can swap useAtomValue calls to fix the issue or enable strict mode also(but not in production) works.

Link to reproduction

https://codesandbox.io/p/devbox/tl7gkn

@dai-shi
Copy link
Member

dai-shi commented May 17, 2024

2.6.3 and lower returns correct value

Does v2.6.4 break it?

@dai-shi
Copy link
Member

dai-shi commented May 17, 2024

Possible regression of 2.6.4 with derived atoms

Oh, the title says that.

@dai-shi
Copy link
Member

dai-shi commented May 17, 2024

https://github.com/pmndrs/jotai/releases/tag/v2.6.4

The related PR is #2363.

So, probably duplicated with #2532.

We are working on it: #2534

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants