Skip to content

Fix changelog #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,28 @@
> - :house: [Internal]
> - :nail_care: [Polish]

## 0.12.0-alpha.2

#### :rocket: New Feature

- Added `React.lazy_`.
## 0.12.0-alpha.3

#### :boom: Breaking Change

- Requires ReScript 11.0.0-alpha.6 or newer.
- 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, ...)`
- For calling `useEffect`, `useLayoutEffect` etc. *without* a dependency array (meaning that the effect is executed on every render), there are now separate bindings `useEffectOnEveryRender`, `useLayoutEffectOnEveryRender` etc.
- For calling `useEffect`, `useLayoutEffect` etc. _without_ a dependency array (meaning that the effect is executed on every render), there are now separate bindings `useEffectOnEveryRender`, `useLayoutEffectOnEveryRender` etc.

## 0.12.0-alpha.2

#### :rocket: New Feature

- Added `React.lazy_`.

#### :boom: Breaking Change

- Requires ReScript 11.0.0-alpha.6 or newer.

#### :bug: Bug Fix

Expand Down