Skip to content

VComp is not mounted #1946

@sanpii

Description

@sanpii

Issuehunt badges

Problem
Since the last update, I have this error:

panicked at 'VComp is not mounted', /home/sanpi/.cargo/registry/src/github.com-1ecc6299db9ec823/yew-0.18.0/src/virtual_dom/vnode.rs:62:57

Stack:

init/imports.wbg.__wbg_new_59cb74e423758ede/<@http://localhost:9090/oxfeed_front.js:353:19
logError@http://localhost:9090/oxfeed_front.js:218:18
init/imports.wbg.__wbg_new_59cb74e423758ede@http://localhost:9090/oxfeed_front.js:352:66
console_error_panic_hook::Error::new::h4627145e0b4027bb@http://localhost:9090/oxfeed_front_bg.wasm:wasm-function[25357]:0x718bff
console_error_panic_hook::hook_impl::ha0119511ed4b23fa@http://localhost:9090/oxfeed_front_bg.wasm:wasm-function[2874]:0x3fe718
console_error_panic_hook::hook::h989e643b09a0ef22@http://localhost:9090/oxfeed_front_bg.wasm:wasm-function[28367]:0x74200b
core::ops::function::Fn::call::hd2d10b8ea7f7556a@http://localhost:9090/oxfeed_front_bg.wasm:wasm-function[23453]:0x6fb008
std::panicking::rust_panic_with_hook::hbdbceb5cd158bf19@http://localhost:9090/oxfeed_front_bg.wasm:wasm-function[7345]…
oxfeed_front.js:347:21

Steps To Reproduce
I am working on a big application, it’s difficult to extract a minimal example who reproduces the problem.

The error occurs when this component switches between render the empty and list component¹ : list.rs#L37.

¹ empty -> list -> empty or list -> empty -> list, it works when I switch to a page who display the same component (empty or list).

Expected behavior
No error.

Environment:

  • Yew version: v0.18
  • Rust version: 1.53.0
  • Target, if relevant: wasm32-unknown-unknown
  • Build tool, if relevant: wasm-pack
  • OS, if relevant: Linux
  • Browser and version, if relevant: firefox 89

Questionnaire

  • I'm interested in fixing this myself but don't know where to start
  • I would like to fix and I have a solution
  • I don't have time to fix this right now, but maybe later

IssueHunt Summary

Backers (Total: $100.00)

Become a backer now!

Or submit a pull request to get the deposits!

Tips

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions