Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix race condition in Svelte template #425

Merged
merged 3 commits into from
Dec 5, 2024

Conversation

matthme
Copy link
Collaborator

@matthme matthme commented Dec 4, 2024

Fixes a race condition where Svelte components would try to access the client context when it's not yet defined.

@matthme matthme added ShouldBackport/0.3 This change should be backported to develop-0.3 ShouldBackport/0.4 This change should be backported to develop-0.1 labels Dec 4, 2024
@matthme matthme requested a review from pdaoust December 4, 2024 22:54
@pdaoust
Copy link
Collaborator

pdaoust commented Dec 4, 2024

Nice; I like the addition of a typedef for the client context. Kinda annoying that you had to edit all the files; thanks for doing that work!

(I looked over it for correctness but didn't scour to see if you'd missed any templates or example files; assuming you've done that ;) )

@matthme
Copy link
Collaborator Author

matthme commented Dec 4, 2024

I tried to catch all yes :) With search I think it's quite easy to see all occurrences so I'm quite confident.

@pdaoust pdaoust enabled auto-merge December 5, 2024 16:57
@pdaoust pdaoust merged commit a1cf975 into develop Dec 5, 2024
11 checks passed
@pdaoust pdaoust deleted the fix/svelte-client-race-condition branch December 5, 2024 16:57
@pdaoust pdaoust restored the fix/svelte-client-race-condition branch December 5, 2024 17:01
@matthme matthme removed ShouldBackport/0.3 This change should be backported to develop-0.3 ShouldBackport/0.4 This change should be backported to develop-0.1 labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants