-
Notifications
You must be signed in to change notification settings - Fork 55
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
Trouble with Svelte #100
Comments
@mlaass - To ensure that the rendering is triggered when new items are added or when the window loads, you can modify the
In this modified version, I've made a couple of changes:
With these modifications, the rendering should be triggered when new items are added from other windows or when the window loads. |
in the example I found out that in order for it to work you have to see to that webrtc is not used on the server side, so i added this, and now it works perfectly. store.ts
|
It should be noted that the code I'm working with was sourced from the webpage and the example provided is a bit different from the current code in the repository. |
I'm trying to get the svelte examples to work on my local machine
So far I have removed the
yjs
dependency from the package because it would trigger an error/warning and addeditems = items
in the submit function, which leads to the item list being re-rendered.It then shows, that items have been submitted before.
What is missing though, is that the when new items are added from other windows, or when the window loads, no rendering is triggered.
I'm not quite sure how to go about this. But I'm guessing there is something not quite right in this function in
@syncedstore/svelte
:Any help in making this work would be appreciated. I'm happy to do a PR once I get this to work.
The text was updated successfully, but these errors were encountered: