Maximum update depth exceeded with next js 16 under react 19

Author: uigywnkiubCreated Feb 14, 2026Updated Feb 14, 2026

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.

<Toaster position={TOAST_POSITION} toastOptions={toastOptions} />

Source: timolins/react-hot-toast