roycdaviesuoa / svelte-fomantic-ui

A simple Svelte wrapper for Fomantic UI
GNU General Public License v3.0
4 stars 2 forks source link

Facing different behavior while navigating between pages vs reloading pages #3

Open mtayyabviz opened 10 months ago

mtayyabviz commented 10 months ago

I have created a few pages using svelte-fomantic-ui within SvelteKit as I already said here and they are working fine both jquery and css is loading properly when accessed directly from the browser or reloading. However, when I navigate through navigation menu component in a SvelteKit page, it usually don't though any error in Chrome Developer Tools, but again reloading page helps every css/js files load again.

I have made quite of progress, but this issue is still there no matter what I do. I tried to hack this issue by just trying to reload the page only once, however I didn't able to get far.

Would give me a possible clue please?

Thanks!

roycdaviesuoa commented 9 months ago

Hard to say without seeing the code. But there can be some need now and then to reload a page or components on a page if making changes within the page due to, say, loading something from an API. Basically, the elements need to be updated to reflect the changes. There is a reload function that can be called either with no parameter, which reloads all the elements, or with a string that identifies the element to be reloaded.

roycdaviesuoa commented 9 months ago

See here: https://github.com/roycdaviesuoa/svelte-fomantic-ui/blob/main/svelte-fomantic-ui/README.md Near the bottom of the page.