Closed korzh875 closed 1 year ago
Hi, when navigating to other pages in SSR, the library works. You aren't actually navigating to another page in the example you provided.
this is an emulation of moving to another page
can you make it so that when the component is restarted, it is initialized again?
https://svelte.dev/repl/286559382580492c8288e53a3597d7e1?version=3.28.0
Alright, I will take a look at it today
Hello @korzh875 , I finally fixed it, it's working as intended.
I've published a new version with the problem fixed
not working
https://stackblitz.com/edit/daisyui-sveltekit-bhcewp?file=package.json 0.0.5 https://stackblitz.com/edit/daisyui-sveltekit-evnxjl?file=package.json 0.0.6
the new version of the package is not installed or the installation fails
@korzh875 , I think it's working, please take a look at the readme. There was another issue open which made me make changes to the whole library.
In the link you also sent, you are using version 0.0.5 and I just published 0.0.6
https://stackblitz.com/edit/daisyui-sveltekit-evnxjl?file=package.json
0.0.6 Version not working
Do Not install correctly
https://github.com/kudadam/svelte-cusdis#props. Use the props here instead. It doesn't use the attr props again
like this?
<Cusdis attrs = {{ appId: "2f49c941-a723-4350-a9eb-cad6fab4772b", pageId: "1", pageUrl: "https:localhost:3000", pageTitle: "Svelte Cusdis" }} />
did you publish the package correctly!?
Why did you re-upload the project to GitHub? I do not see the changes that you made, because everything has changed!
Please open this issue until it is resolved
I had to do a force push to github
check if your library is correct, as it's in the comment above where version 0.0.6 just doesn't work
or show how the component should be initialized
<Cusdis
appId="2f49c941-a723-4350-a9eb-cad6fab4772b"
pageId="demo"
Url="demo"
pageTitle="demo"
/>
Unless evening time, right now I'm at work
Hi, thanks for alerting me, I have seen where the mistake is originating from, I will fix it this evening
@korzh875 , I have fixed it, can you confirm it on your end for me
works fine
pls remove console.log("Destroyed");
oh sorry😂😂
Done
Hello
thanks for the library
but it doesn't work in some cases
for example, when going to other pages with ssr
here is the emulation
or press the restart button or add something to the template and save, the comment form disappears
https://stackblitz.com/edit/daisyui-sveltekit-ubtpn9?file=package.json