raveclassic / frp-ts

Functional reactive values-over-time
MIT License
80 stars 8 forks source link

feat(react): Use sync external store #69

Closed Fyzu closed 1 year ago

Fyzu commented 1 year ago

In React 18, concurrent rendering makes has a glitch issue, coz React pauses during rendering. Between these pauses, updates can pull in the changes related to the data being used to render. It causes the UI to show two different values for the same data.

To solve this issue,useSyncExternalStore was introduced in React 18 for external stores.

nx-cloud[bot] commented 1 year ago

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 59ea70c0b766584c916c96a5835dead4f62a089e. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 3 targets - [`nx affected --target=test --parallel --max-parallel=2`](https://cloud.nx.app/runs/7foQoY3byAD) - [`nx affected --target=lint --parallel --max-parallel=3`](https://cloud.nx.app/runs/DvwRCUgASDD) - [`nx affected --target=build --parallel --max-parallel=3`](https://cloud.nx.app/runs/Jl17s8nWm61)

Sent with 💌 from NxCloud.