Skip to content

fix(vanilla/utils/atomWithObservable): use symbol index signature to avoid 'Symbol.observable' type reference#3274

Open
sukvvon wants to merge 2 commits intopmndrs:mainfrom
sukvvon:fix/atomWithObservable-symbol-observable-type
Open

fix(vanilla/utils/atomWithObservable): use symbol index signature to avoid 'Symbol.observable' type reference#3274
sukvvon wants to merge 2 commits intopmndrs:mainfrom
sukvvon:fix/atomWithObservable-symbol-observable-type

Conversation

@sukvvon
Copy link
Copy Markdown
Contributor

@sukvvon sukvvon commented Mar 25, 2026

Related Bug Reports or Discussions

Fixes #3120

Summary

Replace [Symbol.observable] with [key: symbol] index signature in SymbolObservable<T> type to avoid direct reference to Symbol.observable, which caused a type error for users with skipLibCheck: false and without ES2015.Symbol.WellKnown in their lib config.

Check List

  • pnpm run fix for formatting and linting code and docs

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 2026

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

Project Deployment Actions Updated (UTC)
jotai Ready Ready Preview, Comment Mar 25, 2026 1:01am

Request Review

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci bot commented Mar 25, 2026

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
Copy Markdown

github-actions bot commented Mar 25, 2026

LiveCodes Preview in LiveCodes

Latest commit: 10d8b8b
Last updated: Mar 25, 2026 1:01am (UTC)

Playground Link
React demo https://livecodes.io?x=id/37MM8QKHU

See documentations for usage instructions.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 25, 2026

More templates

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

commit: 10d8b8b

@sukvvon sukvvon marked this pull request as ready for review March 25, 2026 17:21
@sukvvon
Copy link
Copy Markdown
Contributor Author

sukvvon commented Mar 26, 2026

@dai-shi 👌

@dai-shi dai-shi added this to the v2.19.1 milestone Mar 26, 2026
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