mohebifar / mohebifar/react-native-copilot

120 rerenders when I wrap my component in copilot.

Open
#202 3 comments 3 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.