Skip to content

Conversation

@dmaskasky
Copy link
Collaborator

Summary

Add a storeHooks.i to be called when atomState is created.

Check List

  • pnpm run fix for formatting and linting code and docs

@vercel
Copy link

vercel bot commented Nov 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
jotai Ready Ready Preview Comment Dec 1, 2025 6:14am

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 19, 2025

More templates

npm i https://pkg.pr.new/jotai@3181

commit: 725db10

@github-actions
Copy link

github-actions bot commented Nov 19, 2025

LiveCodes Preview in LiveCodes

Latest commit: 725db10
Last updated: Dec 1, 2025 6:14am (UTC)

Playground Link
React demo https://livecodes.io?x=id/3YQ4CHUH8

See documentations for usage instructions.

@dmaskasky
Copy link
Collaborator Author

would storeHooks.a be better?

Copy link
Member

@dai-shi dai-shi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. We used to wrap atomStateMap, but this should be clearer.
I like i for "init".

@dai-shi dai-shi added this to the v2.15.2 milestone Nov 30, 2025
@dai-shi dai-shi changed the title add storeHooks.i to be called when atomState is created fix(internals): add storeHooks.i to be called when atomState is created Nov 30, 2025
@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 30, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@dai-shi dai-shi merged commit 4afc31c into pmndrs:main Dec 1, 2025
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants