jamstack-hackathon-starter icon indicating copy to clipboard operation
jamstack-hackathon-starter copied to clipboard

Unnecessary rendering

Open LucaPizzagalli opened this issue 5 years ago • 4 comments

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?

LucaPizzagalli avatar Dec 06 '20 23:12 LucaPizzagalli

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

swyxio avatar Dec 07 '20 09:12 swyxio

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

LucaPizzagalli avatar Dec 07 '20 09:12 LucaPizzagalli

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

swyxio avatar Dec 07 '20 10:12 swyxio

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

LucaPizzagalli avatar Dec 07 '20 13:12 LucaPizzagalli