valtio icon indicating copy to clipboard operation
valtio copied to clipboard

feat: use experimental_use

Open dai-shi opened this issue 1 year ago â€ĸ 3 comments

Ref: https://github.com/facebook/react/pull/25084

It also has refactor with unified Symbol PROXY_STATE.

dai-shi avatar Sep 10 '22 03:09 dai-shi

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)

vercel[bot] avatar Sep 10 '22 03:09 vercel[bot]

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

codesandbox-ci[bot] avatar Sep 10 '22 03:09 codesandbox-ci[bot]

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

compressed-size-action

github-actions[bot] avatar Sep 10 '22 03:09 github-actions[bot]

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.

dai-shi avatar Oct 15 '22 00:10 dai-shi