valtio
valtio copied to clipboard
feat: use experimental_use
Ref: https://github.com/facebook/react/pull/25084
It also has refactor with unified Symbol PROXY_STATE
.
The latest updates on your projects. Learn more about Vercel for Git âī¸
Name | Status | Preview | Updated |
---|---|---|---|
valtio | â Ready (Inspect) | Visit Preview | Oct 15, 2022 at 0:49AM (UTC) |
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 36a8f1adf0ef721bd57b9ebb8ffb615f2e088fb0:
Sandbox | Source |
---|---|
React | Configuration |
React Typescript | Configuration |
React Browserify | Configuration |
React Snowpack | Configuration |
React Parcel | Configuration |
Size Change: +1.42 kB (+3%)
Total Size: 51.5 kB
Filename | Size | Change | |
---|---|---|---|
dist/esm/index.js |
986 B | +255 B (+35%) | đ¨ |
dist/esm/vanilla.js |
2.02 kB | +25 B (+1%) | |
dist/index.js |
1.13 kB | +243 B (+28%) | đ¨ |
dist/system/index.development.js |
1.17 kB | +278 B (+31%) | đ¨ |
dist/system/index.production.js |
526 B | +14 B (+3%) | |
dist/system/vanilla.development.js |
2.16 kB | +48 B (+2%) | |
dist/system/vanilla.production.js |
1.35 kB | +50 B (+4%) | |
dist/umd/index.development.js |
1.25 kB | +242 B (+24%) | đ¨ |
dist/umd/index.production.js |
683 B | +12 B (+2%) | |
dist/umd/vanilla.development.js |
2.39 kB | +91 B (+4%) | |
dist/umd/vanilla.production.js |
1.49 kB | +95 B (+7%) | đ |
dist/vanilla.js |
2.27 kB | +71 B (+3%) |
âšī¸ View Unchanged
Filename | Size |
---|---|
dist/esm/macro.js |
617 B |
dist/esm/macro/vite.js |
732 B |
dist/esm/utils.js |
4.13 kB |
dist/macro.js |
910 B |
dist/macro/vite.js |
1.04 kB |
dist/system/macro.development.js |
725 B |
dist/system/macro.production.js |
555 B |
dist/system/macro/vite.development.js |
839 B |
dist/system/macro/vite.production.js |
660 B |
dist/system/utils.development.js |
4.35 kB |
dist/system/utils.production.js |
2.91 kB |
dist/umd/macro.development.js |
1.06 kB |
dist/umd/macro.production.js |
766 B |
dist/umd/macro/vite.development.js |
1.21 kB |
dist/umd/macro/vite.production.js |
893 B |
dist/umd/utils.development.js |
4.86 kB |
dist/umd/utils.production.js |
3.09 kB |
dist/utils.js |
4.71 kB |
According to https://github.com/reactjs/rfcs/pull/229, the use of use
here is violating the rule/convention of React.
From our perspective, this PR is not breaking.
When React finalizes the spec and release a stable version, we will consider following their pattern, and in that case, our library comes with breaking changes. i.e. snapshot will not resolve promises.
Meanwhile, let's merge this and release a patch version.