#navigation between router will reload??

16 messages · Page 1 of 1 (latest)

languid rain
#

i wonder why i has been use "next/link" but page still reload???

rich relic
#

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?

languid rain
#

so my expected just only re-render 'article file'

rich relic
#

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.

languid rain
rich relic
#

I guess somewhere up in your component tree the information about the current page is stored. Where does asPath come from?

languid rain
# languid rain

@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

rich relic
#

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.

languid rain
rich relic
#

Yes – you can see your application there and look at state and props very easy