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:
- Created 7 years ago
- Comments:7 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
fixed in riot@3.2.1
Oops, @GianlucaGuarini already made an example.