Skip to content

DOM node is not attached to ElRef under some conditions #685

Open
@wkordalski

Description

@wkordalski

Versions

I can reproduce this bug in Seed 0.9
I cannot reproduce this bug in Seed 0.8

In short:

  1. In view we return something like div![el_ref(&some_elref), div!["Some text"]]
  2. After running view, inside update 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions