[Question] Method call from parent
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Description
I think I misunderstood some fundamental: I want to know, how can I call a method from a child component in a parent component, especially when use it in a list?
```js
{this.items.map((item) => {
let textRef // does not work
return (
)
})}
````
Refs only work with dom nodes.
Store solution with observe (for calling a method) or props with observe are an overkill for a simple method call.
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue contains no file or test references. Start from the JSX list example and inspect how Child refs, DOM refs, and observe/props are currently handled; define a supported parent-to-child method-call pattern for each list item and document or test the resulting behavior.
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
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100