question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why nested TAG mounted 2 times?

See original GitHub issue
<app>
  <router>
  <route path=“/demo”> <demo /> </route>
  </router>
</app>
<demo>
…
  this.on('mount', () => {
    console.log(“tag demo mount”);
  })
…
</demo>

Log console:

tag demo mount tag demo mount

Why nested TAG mounted 2 times? Why 2 records tag demo mount?

IF TAG <demo> insert before <router> then tag mounted 1 times…

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
GianlucaGuarinicommented, Feb 10, 2017

fixed in riot@3.2.1

0reactions
cognitomcommented, Feb 8, 2017

Oops, @GianlucaGuarini already made an example.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nested yielding causes tag to be mounted twice · Issue #1766 · riot ...
Describe your issue: When nesting 2 riot tags that contain the tag, the innermost tag's 'mount' event is fired twice when the root...
Read more >
React Component Mounting Twice - Stack Overflow
The problem is that the component prop here is a function application, which yields a new class on each render. This will cause...
Read more >
Component is mounted twice - why? - Get Help - Vue Forum
I have just discovered this issue in console where most of my components are mounted twice mounted(){ console.log("ComponentName mounted.
Read more >
API - RiotJS
riot.mount · selector selects elements from the page and mounts them with a custom component. The selected elements' name must match the custom...
Read more >
Bind mounts - Docker Documentation
The following example mounts the target/ directory into the container twice, and the second mount sets both the ro option and the rslave...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found