Closed lpotthast closed 2 years ago
You're not doing anything wrong, this is a known issue. You can safely ignore it for now. Fixed on master so it'll be gone by next release.
Related to https://github.com/yewstack/yew/issues/870
Thanks for the feedback! Saw that too. When living on the edge using
yew = { git = "https://github.com/yewstack/yew", features = ["csr"] }
yew-router = { git = "https://github.com/yewstack/yew.git" }
yewdux = { git = "https://github.com/intendednull/yewdux" }
and replacing all occurrences of bridge_state
with subscribe
and using the new store
macro, everything works as expected. 👍
Using yew = "0.19" yewdux = "0.7"
When having any store, for example (does not have to be persistent):
And using the store in a component like:
on the call of
self.theme_dispatch.reduce
, the following warning is printed to the console:The Id of the handler: 2, while present in the slab, is not associated with a callback.
This, as stated above, happens with ANY call to reduce. Creating the dispatcher with
Dispatch::new()
(if I don't want't to be notified about state-changes) does not make a difference. Did I miss anything or should I do something differently?