Skip to content
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

have difficulty implementing it with next js #1

Open
ruhaise opened this issue Oct 6, 2019 · 3 comments
Open

have difficulty implementing it with next js #1

ruhaise opened this issue Oct 6, 2019 · 3 comments

Comments

@ruhaise
Copy link

ruhaise commented Oct 6, 2019

it will be much nicer to have a demo explaining the usage with next js

@ruhaise ruhaise changed the title i have difficulty implementing it with next js have difficulty implementing it with next js Oct 6, 2019
@Hermanya
Copy link
Owner

Hermanya commented Oct 6, 2019

I don't think it's compatible with nextjs. Originally I wanted to implement this with for my Gatsby website, that is also using a similar file based routing strategy. It didn't work out because Gatsby unmounts everything on location change. So, as far as I know it only works with something plain like create react app.

@Hermanya
Copy link
Owner

Hermanya commented Oct 6, 2019

If you want build time rendering try create react app and react-snap

@ruhaise
Copy link
Author

ruhaise commented Oct 9, 2019

thanks for the info, next js unmounts everything on location change too but i think its still possible to do that by finding a way to implement properly finding out the current viewport and such,
not sure, i was working on it but failed :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants