-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove eslint exception in
RendererProvider
(#566)
* fix: make RendererProvider isomorphic without disabling lint rules Moves the `canUseDOM()` call inside the `useMemo()` hook, allowing RendererProvider to work without disabling React hooks linting and therefore potential React Compiler optimizations. * Change files --------- Co-authored-by: Oleksandr Fediashov <[email protected]>
- Loading branch information
1 parent
4436d63
commit fb21c43
Showing
2 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@griffel-react-b38d1a6d-6d8d-471e-8e44-e3722096edd2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "fix: make RendererProvider compatible with React Compiler", | ||
"packageName": "@griffel/react", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters