UNPKG

rescript-react-update

Version:

> useReducer with updates and side effects!

79 lines (41 loc) 1.09 kB
## 6.0.1 Changes: - Prepare for ReScript 13 (3cd3bfb) ## 6.0.0 Changes: - Upgrade to ReScript 12 and React 19 (5f47907) ## 5.0.2 Changes: - Add compat with React 18 (a1bd63a) ## 5.0.1 Changes: - Add compat with ReScript React 0.11.x (6c0d979) ## 5.0.0 Fixes: - Fixed effect cleanup (1816f51) ## 4.0.0 Changes: - **Breaking change**: the argument order has been changed to match React's APIs (af9447e) ## 3.0.2 Changes: - Update React & React DOM peer dependencies (44c6959) ## 3.0.1 Fixes: - Fixed `bsconfig` name (thanks @jasim) (2ebd081) ## 3.0.0 Changes: - Move to ReScript (62665af) - Move from reason-react to @rescript/react (62665af) - Rename project to `rescript-react-update` (62665af) ## 2.0.0 Changes: - Make effect management preact-safe (76664b6) ## 1.0.0 Features: - Add `ReactUpdateLegacy` for uncancellable effects, easing the migration process if copy pasting from record API reducers (c4ccec5) - Add `useReducerWithMapState` API to enable lazy state init (19eee9a) ## 0.1.1 Changes: - Stop exposing fullState ## 0.1.0 Initial release