Simple, scalable state management.
1470b8e4
#3404 Thanks @pixelkritzel! - this.context
is observable if static contextType is set4c5e75cd
#3382 Thanks @iChenLei! - replace the deprecated react type definition with recommended type definition
bd4b70d8
#3387 Thanks @mweststrate! - Added experimental / poor man's support for React 18. Fixes #3363, #2526. Supersedes #3005
useMutableSource
will trigger warnings in React 18, which is correct and those shouldn't be used anymore.act
is used in unit tests around every programmatic mutation. Without it, changes won't propagate!useSyncExternalStore
and capturing the current values together with the dependency tree of every component instance. However that isn't included in this pull request 1) it would be a breaking change, whereas the current change is still compatible with React 16 and 17. 2) I want to collect use cases where the tearing leads to problems first to build a better problem understanding. If you run into the problem, please submit an issue describing your scenario, and a PR with a unit tests demonstrating the problem in simplified form. For further discussion see #2526, #30054c5e75cd
#3382 Thanks @iChenLei! - replace the deprecated react type definition with recommended type definition
bd4b70d8
#3387 Thanks @mweststrate! - Added experimental / poor man's support for React 18. Fixes #3363, #2526. Supersedes #3005
useMutableSource
will trigger warnings in React 18, which is correct and those shouldn't be used anymore.act
is used in unit tests around every programmatic mutation. Without it, changes won't propagate!useSyncExternalStore
and capturing the current values together with the dependency tree of every component instance. However that isn't included in this pull request 1) it would be a breaking change, whereas the current change is still compatible with React 16 and 17. 2) I want to collect use cases where the tearing leads to problems first to build a better problem understanding. If you run into the problem, please submit an issue describing your scenario, and a PR with a unit tests demonstrating the problem in simplified form. For further discussion see #2526, #3005