How to get nanocomponent instance reference from root node?
- Dominant language
- JavaScript
- Stars
- 364
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
Hi :wave:
I have a situation where I have many components and some external libraries which manipulates the DOM. So, those libraries transform the root node of my components, and I need to run functions from the components after they are manipulated but I can't figure out how to get reference to that instance from the node manipulated for this library.
In other words, what I would like is the inverse of the `element` property of nanocomponent, perhaps a function that given a DOM element returns the actual nanocomponent tied to it. Is this possible?
Thanks :)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading nanocomponent's `element` property and the component lifecycle around the root DOM node. Trace how a component instance is associated with that node, then determine whether a reverse lookup can be supported; done means the supported behavior or limitation is clear and covered by the relevant documentation or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100