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

fix(utils): undefined bug with no entry in storage #1088

Merged
merged 2 commits into from
Apr 9, 2022
Merged

Conversation

dai-shi
Copy link
Member

@dai-shi dai-shi commented Apr 8, 2022

close #1086

This was a silly mistake, but can't be noticed without a test.

@vercel
Copy link

vercel bot commented Apr 8, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pmndrs/jotai/78CodTsWxvf65kMU2YYtL8tFpwss
✅ Preview: https://jotai-git-fix-issue-1086-pmndrs.vercel.app

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 8, 2022

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.

Latest deployment of this branch, based on commit 0a48039:

Sandbox Source
React Configuration
React Typescript Configuration
React Browserify Configuration
React Snowpack Configuration
Next.js Configuration
Next.js with custom Babel config Configuration
React with custom Babel config Configuration

@github-actions
Copy link

github-actions bot commented Apr 8, 2022

Size Change: -2 B (0%)

Total Size: 132 kB

Filename Size Change
dist/esm/utils.js 4.75 kB -1 B (0%)
dist/system/utils.production.js 3.31 kB +1 B (0%)
dist/umd/utils.development.js 6.11 kB -1 B (0%)
dist/utils.js 5.94 kB -1 B (0%)
ℹ️ View Unchanged
Filename Size
dist/babel/plugin-debug-label.js 881 B
dist/babel/plugin-react-refresh.js 1.1 kB
dist/babel/preset.js 1.33 kB
dist/devtools.js 3.25 kB
dist/esm/babel/plugin-debug-label.js 711 B
dist/esm/babel/plugin-react-refresh.js 924 B
dist/esm/babel/preset.js 1.15 kB
dist/esm/devtools.js 2.48 kB
dist/esm/immer.js 616 B
dist/esm/index.js 5.45 kB
dist/esm/optics.js 661 B
dist/esm/query.js 1.25 kB
dist/esm/redux.js 251 B
dist/esm/urql.js 1.5 kB
dist/esm/valtio.js 526 B
dist/esm/xstate.js 1.13 kB
dist/esm/zustand.js 284 B
dist/immer.js 732 B
dist/index.js 6.25 kB
dist/optics.js 938 B
dist/query.js 1.36 kB
dist/redux.js 314 B
dist/system/babel/plugin-debug-label.development.js 818 B
dist/system/babel/plugin-debug-label.production.js 619 B
dist/system/babel/plugin-react-refresh.development.js 1.02 kB
dist/system/babel/plugin-react-refresh.production.js 798 B
dist/system/babel/preset.development.js 1.25 kB
dist/system/babel/preset.production.js 986 B
dist/system/devtools.development.js 2.64 kB
dist/system/devtools.production.js 1.83 kB
dist/system/immer.development.js 739 B
dist/system/immer.production.js 461 B
dist/system/index.development.js 5.68 kB
dist/system/index.production.js 3.05 kB
dist/system/optics.development.js 765 B
dist/system/optics.production.js 456 B
dist/system/query.development.js 1.4 kB
dist/system/query.production.js 963 B
dist/system/redux.development.js 339 B
dist/system/redux.production.js 217 B
dist/system/urql.development.js 1.65 kB
dist/system/urql.production.js 1.19 kB
dist/system/utils.development.js 5.08 kB
dist/system/valtio.development.js 639 B
dist/system/valtio.production.js 402 B
dist/system/xstate.development.js 1.25 kB
dist/system/xstate.production.js 805 B
dist/system/zustand.development.js 372 B
dist/system/zustand.production.js 235 B
dist/umd/babel/plugin-debug-label.development.js 1.03 kB
dist/umd/babel/plugin-debug-label.production.js 776 B
dist/umd/babel/plugin-react-refresh.development.js 1.24 kB
dist/umd/babel/plugin-react-refresh.production.js 931 B
dist/umd/babel/preset.development.js 1.47 kB
dist/umd/babel/preset.production.js 1.12 kB
dist/umd/devtools.development.js 3.38 kB
dist/umd/devtools.production.js 2.26 kB
dist/umd/immer.development.js 878 B
dist/umd/immer.production.js 576 B
dist/umd/index.development.js 6.34 kB
dist/umd/index.production.js 3.28 kB
dist/umd/optics.development.js 1.08 kB
dist/umd/optics.production.js 671 B
dist/umd/query.development.js 1.5 kB
dist/umd/query.production.js 1.03 kB
dist/umd/redux.development.js 454 B
dist/umd/redux.production.js 322 B
dist/umd/urql.development.js 1.71 kB
dist/umd/urql.production.js 1.17 kB
dist/umd/utils.production.js 3.78 kB
dist/umd/valtio.development.js 722 B
dist/umd/valtio.production.js 500 B
dist/umd/xstate.development.js 1.33 kB
dist/umd/xstate.production.js 845 B
dist/umd/zustand.development.js 479 B
dist/umd/zustand.production.js 334 B
dist/urql.js 1.56 kB
dist/valtio.js 586 B
dist/xstate.js 1.19 kB
dist/zustand.js 344 B

compressed-size-action

@dai-shi dai-shi added this to the v1.6.3 milestone Apr 9, 2022
@dai-shi dai-shi merged commit 46b2dac into main Apr 9, 2022
@dai-shi dai-shi deleted the fix/issue-1086 branch April 9, 2022 12:40
@Moshyfawn
Copy link

Thank you for your work!

Do you have an ETA for the next release that will include this fix? I'm not familiar with the Jotai release cycle yet. Not trying to rush or anything ;)

@dai-shi
Copy link
Member Author

dai-shi commented Apr 9, 2022

very soon.
I put a date in the milestone, so you can expect when I'm planning: https://github.com/pmndrs/jotai/milestone/20

@Moshyfawn
Copy link

I appreciate it, thx!

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.

atomWithStorage seems to be broken with 1.6.2
2 participants