We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have tried to use this wrapper component as shown in the README.
But I am not experiencing any difference of functionality, am I missing something?
I expected ssrOnly to render a component with zero functionality. But it is being rendered full and interactive.
ssrOnly
I have also tried the other events and am seeing no difference.
Example code:
import LazyHydrate from 'react-lazy-hydration' export default function Test() { return ( <div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }}> Hello Test! <LazyHydrate ssrOnly> <div style={{ background: 'red', width: 300, height: 300 }} onClick={() => console.log('clicked')} > Click Me </div> </LazyHydrate> </div> ) }
I am seeing clicked in the console with this code after clicking.
clicked
The text was updated successfully, but these errors were encountered:
Turn's out we are rendering with Preact, which is apparently not supported.
Preact
Sorry, something went wrong.
No branches or pull requests
I have tried to use this wrapper component as shown in the README.
But I am not experiencing any difference of functionality, am I missing something?
I expected
ssrOnly
to render a component with zero functionality. But it is being rendered full and interactive.I have also tried the other events and am seeing no difference.
Example code:
I am seeing
clicked
in the console with this code after clicking.The text was updated successfully, but these errors were encountered: