Open
Description
Versions
I can reproduce this bug in Seed 0.9
I cannot reproduce this bug in Seed 0.8
In short:
- In
view
we return something likediv![el_ref(&some_elref), div!["Some text"]]
- After running
view
, insideupdate
some_elref.get().is_none()
is true.
This means that DOM node is not attached to ElRef
under some conditions.
Example: https://github.com/wkordalski/seed-elref-bug
Run it with:
yarn
yarn run webpack serve
Open localhost:8888
Open Developer tools (esp. console).
Click "Add measurements" few times (not every time this bug is visible)
Exploading assertion should be visible in the console.
...under some conditions
It seems that this bug is related to running async code or websockets.