Releases: rescript-lang/rescript-react
Releases Β· rescript-lang/rescript-react
0.14.0
0.14.0-rc.1
0.13.1
0.13.0
0.12.2
0.12.1
0.12.0
0.12.0-alpha.3
π₯ Breaking Change
- Deprecated use*N functions in favor of changing the signature of the main hook function.
- For example, useEffect instead of useEffectN e.g.
useEffect3(f, (a, b, c))->useEffect(f, (a, b, c)) - The affected hooks include
useEffect,useLayoutEffect,useCallback,useMemo,useImperativeHandle,useInsertionEffect - With this change, it is now possible to pass any value as the second argument
'deps. In case you pass an invalid value, you will get a warning from React at runtime. You should be using one of the following values for the dependency array:- 0 dependencies:
[] - 1 dependency:
[a] - more than 1 dependency:
(a, b, ...)
- 0 dependencies:
- For example, useEffect instead of useEffectN e.g.
- For calling
useEffect,useLayoutEffectetc. without a dependency array (meaning that the effect is executed on every render), there are now separate bindingsuseEffectOnEveryRender,useLayoutEffectOnEveryRenderetc.
0.12.0-alpha.2
π New Feature
- Added
React.lazy_.
π₯ Breaking Change
- Requires ReScript 11.0.0-alpha.6 or newer.
π Bug Fix
- Fixed children type for
Fragment,StrictModeandSuspense.
π Polish
- Removed experimental
SuspenseListcomponent.
0.12.0-alpha.1
π New Feature
- Compatibility with ReScript 11 uncurried mode.
- Added
gapprop toReactDOMStyle.make.
π₯ Breaking Change
- Removed
React.callbacktype.
π Bug Fix
- Updated
React_V3compatibility module to define record fieldcurrentforref.