mohebifar / mohebifar/react-native-copilot
120 rerenders when I wrap my component in copilot.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
Hi there,
so sorry for not using the template but this is more a question than anything.
I'm using the copilot HOC as described in the README.
However, when I do that my component re-renders anywhere between 107 and 120 times every single time I call it..
I'm using start() and I'm calling that on mount. (incase that's important to know)
That doesn't seem very performant and also blocks up my entire UI thread and slows down animations. Is there any way around or to change that?
Cheers
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the README's copilot HOC example and the component mount path that calls start(). Reproduce the reported 107–120 renders while observing the UI thread and animations. Done means identifying the source of the excessive rerenders and confirming that the walkthrough starts without blocking the UI.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100