Expected behavior
Using onload={}
to get a reference to an element in order to modify it with a non-choo library will allow that library to modify the element without overwriting changes in the second pass.
Actual behavior
The DOM is rewritten later.
Steps to reproduce behavior
Full code to an example: https://gist.github.com/tmcw/0b443b065c10b636cf073cbf64e67110
This is a pattern that’s familiar to me with React: I’m integrating with Mapbox GL JS, a library that expects to control a small part of the DOM tree - the same will hold for Leaflet, Mapbox.js, and all other mapping libraries I know of. In React, we use refs to do this. In choo, I assumed that onload={}
would be the ticket, but I can’t find any way to get choo to play nice with a library that does its own DOM manipulation.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
ReFS
Resilient File System (ReFS), codenamed "Protogon", is a Microsoft proprietary file system introduced with Windows Server 2012 with the intent of becoming ...
Read more >Resilient File System (ReFS) overview
The Resilient File System (ReFS) is Microsoft's newest file system, designed to maximize data availability, scale efficiently to large data ...
Read more >Refs and the DOM
Refs provide a way to access DOM nodes or React elements created in the render method. In the typical React dataflow, props are...
Read more >ReFS Overview
Abbreviation for Resilient File System, ReFS is a file system created with source codes of the latest versions of NTFS. ReFS is not...
Read more >What is Resilient File System (ReFS)? | Definition from ...
Resilient File System (ReFS) is a file system developed by Microsoft for use on the Windows operating system (OS) that's designed to overcome...
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
@tmcw released
cache-element@1.1.0
- thewidget
function should be what you’re looking for to integratemapbox
withyo-yo/choo
https://github.com/yoshuawuyts/cache-element ✨ keen to hear your thoughts on it!This should be solved; gonna close this ✨ - lmk if you’ve got any further questions, always happy to help!