Closed mgarf closed 1 year ago
Is beforeUpdate also called before first render?
Based on my testing and this: https://svelte.dev/tutorial/update
I wouldn't merge this yet though. I've barely tested it outside of ensuring it fixed my use case. I wanted it created so others can test out the changes as well
Awesome, will wait a bit. Happy you could step in on this!
Np, if your ok with it - I would like to add some playwright tests with a dummy sveltekit that runs through some sequences
@mgarf Any news?
been buried, should have time this week
Hi, I can confirm this PR fixes #24 for me, thanks
Is there anything else to do before the PR can be merged? I have tested this both on the README example as well as a medium-size real-world application, is there anything else? :)
@marekdedic Can yo u check the conflicts I fixed on src/sswr.ts? If so, this is ready for merge
Umm, you mean 3d5a618? That should cause no problems... Or do you mean something else?
I'll make a release in a few min/h
Solution: Migrate the subscription from onMount to beforeUpdate.
Theory: onMount is too early in the lifecycle for reactivity