Skip to content

Conversation

@himself65
Copy link
Collaborator

From v3 discussion #2889

Do not use use in useAtomValue (migration path: add { use: true } option which is true by default in v2, and warns it)

@vercel
Copy link

vercel bot commented Jul 29, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
jotai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 29, 2025 11:56pm

@codesandbox-ci
Copy link

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.

@github-actions
Copy link

LiveCodes Preview in LiveCodes

Latest commit: 0438ff3
Last updated: Jul 29, 2025 11:56pm (UTC)

Playground Link
React demo https://livecodes.io?x=id/444XAH6WH

See documentations for usage instructions.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jul 29, 2025

More templates

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

commit: 0438ff3

@dai-shi
Copy link
Member

dai-shi commented Jul 30, 2025

I would like to wait for #2889 (comment) a little more.

Once we decided our plan, we don't need unstable_ prefix. btw, what's the implication behind defaultUse instead of use?

const {
delay,
unstable_promiseStatus: promiseStatus = !React.use,
unstable_defaultUse = true,
Copy link
Member

Choose a reason for hiding this comment

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

We should warn if it's undefined for the migration. So, it's too early to merge this PR.

@dai-shi dai-shi marked this pull request as draft July 30, 2025 00:02
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