planning
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s

This commit is contained in:
2024-10-14 09:15:30 +02:00
parent bcba00a730
commit 6e64e138e2
21059 changed files with 2317811 additions and 1 deletions

26
node_modules/use-isomorphic-layout-effect/README.md generated vendored Normal file
View File

@@ -0,0 +1,26 @@
# use-isomorphic-layout-effect
A React helper hook for scheduling a layout effect with a fallback to a regular effect for environments where layout effects should not be used (such as server-side rendering).
## Installation
```sh
$ npm i use-isomorphic-layout-effect
```
## Usage
You only need to switch `useLayoutEffect` with `useIsomorphicLayoutEffect`
```diff
+ import useIsomorphicLayoutEffect from 'use-isomorphic-layout-effect';
- import { useLayoutEffect } from 'react';
const YourComponent = () => {
+ useIsomorphicLayoutEffect(() => {
- useLayoutEffect(() => {
// your implementation
}, []);
};
```