#navigation between router will reload??
16 messages · Page 1 of 1 (latest)
I'm not sure I understand the question. From what you shared it doesn't look like a page load to me. What are you trying to do and what is the thing not working for you?
I mean, why when navigation 'style of library chakra' and sidebar re-render??,
so my expected just only re-render 'article file'
Ah, I see. My guess is that that the sidebar re-renders because it uses state to save the currently active section. And when that state changes, the sidebar re-renders.
sorry but this feature just only check asPath === link of an array (array = [{context: "1" link: "home"]}) true ? active : false
I guess somewhere up in your component tree the information about the current page is stored. Where does asPath come from?
@rich relic please watch again, do you see tag re-render when i clicked item? & navgiation
and other website i see, when navigation not reload html like video
sorry i don't understand
Are you using the React Devtools browser extension? Should also be able to see this more clearly there.
Your application probably re-renders, because the sidebar state is stored way up in the component tree.
so extension maybe useful for work looking why sidebar re-render?
Yes – you can see your application there and look at state and props very easy