Skip to content

Conversation

raeiny0day
Copy link

This pull request will fix the issue mentioned here: #2705

Fix: Avoid infinite update loop in Agenda > ReservationList on Expo SDK 53+

Problem

When using react-native-calendars in Expo SDK 53+, the app crashes due to a Maximum update depth exceeded error in the ReservationList component of the Agenda.

This was caused by an infinite re-render triggered in componentDidUpdate, due to the state being set on every prop change without proper guarding.

Solution

Updated the componentDidUpdate method to check for meaningful changes in props (showOnlySelectedDayItems, items, and selectedDay) before calling setState or updating reservations.

This patch was submitted using @dangthequan 's contribution.

@ssunday
Copy link

ssunday commented Aug 18, 2025

Would be great if some Expo 53 fix could finally get released!

@itsandrehere
Copy link

We're still waiting for this here please.

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.

5 participants