tnfshcec / tnfshcec-web

電機社社網
http://www.tnfshcec.com/
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Navigating between `post/[...post]` routes doesn't update the content #74

Closed Eggrror404 closed 6 months ago

Eggrror404 commented 6 months ago

as title says, if you for example navigate from post/blog-post to post/deez-nuts, the content of the new post will not show up.

my current guess of the cause is that when a page is client-side rendered, the markdown component (generated by mdsvex) is not on the client; so only server-rendered paged will work.

this might be some problem with the load function, it's kind of miss-used here as we're passing a whole component through, and maybe the markdown document can't be imported from client-side code