react-lazy-hydration
react-lazy-hydration copied to clipboard
Lazy Hydration for Server Rendered React Components
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.0 to 5.1.2. Release notes Sourced from glob-parent's releases. v5.1.2 Bug Fixes eliminate ReDoS (#36) (f923116) v5.1.1 Bug Fixes unescape exclamation mark (#26) (a98874f) Changelog Sourced from...
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.11.1 to 4.16.6. Changelog Sourced from browserslist's changelog. 4.16.6 Fixed npm-shrinkwrap.json support in --update-db (by Geoff Newman). 4.16.5 Fixed unsafe RegExp (by Yeting Li). 4.16.4 Fixed unsafe...
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.5 to 2.8.9. Changelog Sourced from hosted-git-info's changelog. 2.8.9 (2021-04-07) Bug Fixes backport regex fix from #76 (29adfe5), closes #84 2.8.8 (2020-02-29) Bug Fixes #61 & #65...
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...
Consider exporting multiple components for different hydration strategies as opposed to a single component controlled with props. ## Pros - Smaller size (assuming an app does not need/use all these...
`children: React.ReactElement | React.ReactElement[]` I can PR if you prefer
* Add `"strict": true` to `tsconfig` (https://www.typescriptlang.org/tsconfig#strict) * Add `requestIdleCallback` window types and removes `// ts-ignore` statements * Add null-checking around `childRef.current` (it's possible that a ref's `current` value is...
Relevant lines to review: * https://github.com/hadeeb/react-lazy-hydration/pull/25/files#diff-38682f47b0cf12c516bc3714fc45d0fdR158-R170 * https://github.com/hadeeb/react-lazy-hydration/pull/25/files#diff-38682f47b0cf12c516bc3714fc45d0fdR32-R35 Adds a `listenOnEl` prop to allow the consumer to specify which element to listen on for events. In my use case, I...
Splits the component into smaller component for each hydration strategy. closes #14 ### Notes on hydration when visible To support `IntersectionObserver` customizations, an `IntersectionObserver` instance is created for each ~~component~~...
I've noticed recently on our sentry logs, that we have the following error :  I had a look and I see that the ref is initialized with null, so...