Skip to content

Conversation

@self1am
Copy link

@self1am self1am commented Nov 18, 2025

…-renders

Fixes maximum call stack size exceeded error caused by infinite re-render loop.

The issue occurs because:

  • listData is in the dependency array
  • When data changes, listData gets updated via setListData
  • This triggers the effect again, creating an infinite loop

Solution: Remove listData from dependencies since we only need to react to data, searchText, and excludeData changes.

Tested on React Native 0.80.x with Android API 35.

Related issue: Fixes #302

…-renders

Fixes maximum call stack size exceeded error caused by infinite re-render loop.

The issue occurs because:
- listData is in the dependency array
- When data changes, listData gets updated via setListData
- This triggers the effect again, creating an infinite loop

Solution: Remove listData from dependencies since we only need to react to data, searchText, and excludeData changes.

Tested on React Native 0.80.x with Android API 35.

Related issue: hoaphantn7604#302
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Getting Maximum Depth Exceeded Warning when using it

1 participant