Comments (4)
I believe that this should be fixed by #612 which makes removes RcSignal
in favor of making all signals Copy + 'static
.
from sycamore.
I've updated the code to use sycamore 0.9.0-beta.2 and the bug is still present.
The new signals do mean, that i'll be able to refactor the code base, which will probably solve the bug in my instance.
But this could be something someone else might run into in a more complex project than mine,
Although i admit that it might be a bit of an extreme case.
Here's the link to the new version https://github.com/johnvanderholt/wasm_risk/tree/8afca8598d683801882f542ed53cae5a5e1441c4
from sycamore.
I've updated the code to use sycamore 0.9.0-beta.2 and the bug is still present. The new signals do mean, that i'll be able to refactor the code base, which will probably solve the bug in my instance. But this could be something someone else might run into in a more complex project than mine, Although i admit that it might be a bit of an extreme case.
Here's the link to the new version https://github.com/johnvanderholt/wasm_risk/tree/8afca8598d683801882f542ed53cae5a5e1441c4
I've had a quick look at your code and I believe the problem might be due to updating signals from within memos/effects.
For one thing, if you are not using the result of the memo, it is semantically more correct to use create_effect
which is specifically meant for this kind of thing.
Secondly, it is generally considered much better to use memos instead of manually updating signals withy effects. This not only solves some synchronisation issues and the "diamond problem", it also generally should have much better performance.
Hope this helps!
from sycamore.
ok, good to know.
thanks, for the help.
from sycamore.
Related Issues (20)
- Panic updating signal in 0.9.0-beta.2 HOT 1
- Bootstrap scrollspy support HOT 4
- Book (website) routing not properly updating HOT 8
- Shared data update failed when nested routing layout HOT 1
- Is there a tool for converting HTML to sycamore components? HOT 1
- Is there a case of a right-click pop-up menu? HOT 2
- Nested component using string error HOT 1
- Nested component click event error HOT 1
- Nested component click event error HOT 1
- Hydrate example has a javascript error and does not work HOT 2
- Support binding to a radio input value HOT 2
- Console error "closure invoked recursively or after being dropped" when executing `navigate` in a component using `Indexed` HOT 4
- hydration start marker not found after trunk build --release
- Websocket example HOT 1
- Unable to view source in the docs: `Query parser error: "Unexpected `.`"` HOT 1
- `set_fn` is silent
- Keydown event not firing on textarea HOT 2
- rust-analyzer reports a warning arising from proc-macro
- Sycamore-v0.9.0's PointerEvent error in Chrome (Windows) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sycamore.