react-native-calendars icon indicating copy to clipboard operation
react-native-calendars copied to clipboard

Maximum update depth exceeded: Agenda component

Open tyrail311 opened this issue 7 months ago • 11 comments

Receiving the following error whenever I use the agenda component in my app.

ERROR Warning: Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.

tyrail311 avatar May 13 '25 23:05 tyrail311

I am getting this same error using expo.

OG-Owen avatar May 14 '25 03:05 OG-Owen

Getting the exact same error using expo

yahya-khaan avatar May 15 '25 04:05 yahya-khaan

Related to #2656

CostasCF avatar May 15 '25 08:05 CostasCF

I also get this problem on Expo SDK v53 with new architecture, is there any solution to fix it? Thank you!

cw1997 avatar May 17 '25 12:05 cw1997

Also having this issue 👍

Riandan avatar May 17 '25 22:05 Riandan

I'm facing the same issue

neeleshyadav253 avatar May 22 '25 08:05 neeleshyadav253

I think this PR aims to fix the issue. Hopefully it gets merged soon.

shareef-dweikat avatar May 25 '25 09:05 shareef-dweikat

Facing the same issue.

omerjamshed8 avatar Jun 05 '25 13:06 omerjamshed8

Try this temp solution https://github.com/wix/react-native-calendars/pull/2664#issuecomment-2931525085

shareef-dweikat avatar Jun 06 '25 13:06 shareef-dweikat

Use patch-package to apply this patch (version 1.1313.0):

react-native-calendars+1.1313.0.patch

It works!

dangthequan avatar Jul 29 '25 10:07 dangthequan

I'm getting this error on the latest React Native 0.81.1

wajidraza786 avatar Sep 19 '25 12:09 wajidraza786