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

Unnecessary rendering #18

Open
LucaPizzagalli opened this issue Dec 6, 2020 · 4 comments
Open

Unnecessary rendering #18

LucaPizzagalli opened this issue Dec 6, 2020 · 4 comments

Comments

@LucaPizzagalli
Copy link

Thank you for the boilerplate starter, that's really what I was looking for.

I just have an issue:
when I navigate inside the client rendering app all the app is rendered each time, not only the component page. (I checked this simply with a console.log in the app component)

I would like to avoid this for performance reasons; is there a way?

@swyxio
Copy link
Collaborator

swyxio commented Dec 7, 2020

there's probably a way, but I'm sorry I'm not maintaining this project anymore. if you want to maintain a fork I can send people to you! lmk

@LucaPizzagalli
Copy link
Author

Thanks for the answer, but I'm still learning the stack it's not yet time for managing a fork :)

@swyxio
Copy link
Collaborator

swyxio commented Dec 7, 2020

alright. as a pointer, the problem could be located here https://github.com/sw-yx/jamstack-hackathon-starter/blob/master/src/app/components/PrivateRoute.js i dont know how to fix it though

@LucaPizzagalli
Copy link
Author

Thanks.
In the end I'm satisfied with using gatsby for the static pages and create-react-app in a subfolder for the app

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