Repository navigation
Description
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.3.50-4
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from BrowserStack: N/A
Expensify/Expensify Issue URL:
Issue reported by: https://github.com/Expensify/Web-Expensify/pull/51648#issuecomment-4142828827
Action Performed:
- Download crash_example.csv, or create a simple CSV file for an bulk employee upload, with only 1 employee line, e.g.:
email,role,submitsTo submitter+test@example.com,Member,manager+test@example.com
- Create a new workspace
- Go to Members > More > Import Spreadsheet
- Upload your CSV file from step 1
Expected Result:
Both employees (submitter and manager) are imported and the UI updates to show them
Actual Result:
The app crashes
JS console error
react-dom-client.development.js:4624 Uncaught 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.
at getRootForUpdatedFiber (react-dom-client.development.js:4624:11)
at enqueueConcurrentHookUpdate (react-dom-client.development.js:4584:14)
at dispatchSetStateInternal (react-dom-client.development.js:9167:18)
at dispatchSetState (react-dom-client.development.js:9127:7)
at eval (index.tsx:106:1)
at Object.react_stack_bottom_frame (react-dom-client.development.js:26001:13)
at runWithFiberInDEV (react-dom-client.development.js:872:30)
at commitHookEffectListUnmount (react-dom-client.development.js:13316:17)
at commitHookPassiveUnmountEffects (react-dom-client.development.js:13347:11)
at commitPassiveUnmountEffectsInsideOfDeletedTree_begin (react-dom-client.development.js:16264:13)
at recursivelyTraversePassiveUnmountEffects (react-dom-client.development.js:16085:13)
at commitPassiveUnmountOnFiber (react-dom-client.development.js:16159:11)
at recursivelyTraversePassiveUnmountEffects (react-dom-client.development.js:16105:11)
at commitPassiveUnmountOnFiber (react-dom-client.development.js:16117:11)
at recursivelyTraversePassiveUnmountEffects (react-dom-client.development.js:16105:11)
at commitPassiveUnmountOnFiber (react-dom-client.development.js:16159:11)
at recursivelyTraversePassiveUnmountEffects (react-dom-client.development.js:16105:11)
at commitPassiveUnmountOnFiber (react-dom-client.development.js:16159:11)
at recursivelyTraversePassiveUnmountEffects (react-dom-client.development.js:16105:11)
at commitPassiveUnmountOnFiber (react-dom-client.development.js:16117:11)
at recursivelyTraversePassiveUnmountEffects (react-dom-client.development.js:16105:11)
at commitPassiveUnmountOnFiber (react-dom-client.development.js:16159:11)
at recursivelyTraversePassiveUnmountEffects (react-dom-client.development.js:16105:11)
at commitPassiveUnmountOnFiber (react-dom-client.development.js:16159:11)
at recursivelyTraversePassiveUnmountEffects (react-dom-client.development.js:16105:11)
at commitPassiveUnmountOnFiber (react-dom-client.development.js:16117:11)
at recursivelyTraversePassiveUnmountEffects (react-dom-client.development.js:16105:11)
at commitPassiveUnmountOnFiber (react-dom-client.development.js:16159:11)
at recursivelyTraversePassiveUnmountEffects (react-dom-client.development.js:16105:11)
at commitPassiveUnmountOnFiber (react-dom-client.development.js:16159:11)
at recursivelyTraversePassiveUnmountEffects (react-dom-client.development.js:16105:11)
at commitPassiveUnmountOnFiber (react-dom-client.development.js:16117:11)
at recursivelyTraversePassiveUnmountEffects (react-dom-client.development.js:16105:11)
at commitPassiveUnmountOnFiber (react-dom-client.development.js:16159:11)
at recursivelyTraversePassiveUnmountEffects (react-dom-client.development.js:16105:11)
at commitPassiveUnmountOnFiber (react-dom-client.development.js:16117:11)
at recursivelyTraversePassiveUnmountEffects (react-dom-client.development.js:16105:11)
at commitPassiveUnmountOnFiber (react-dom-client.development.js:16159:11)
at recursivelyTraversePassiveUnmountEffects (react-dom-client.development.js:16105:11)
at commitPassiveUnmountOnFiber (react-dom-client.development.js:16159:11)
at recursivelyTraversePassiveUnmountEffects (react-dom-client.development.js:16105:11)
at commitPassiveUnmountOnFiber (react-dom-client.development.js:16117:11)
at recursivelyTraversePassiveUnmountEffects (react-dom-client.development.js:16105:11)
at commitPassiveUnmountOnFiber (react-dom-client.development.js:16159:11)
at recursivelyTraversePassiveUnmountEffects (react-dom-client.development.js:16105:11)
at commitPassiveUnmountOnFiber (react-dom-client.development.js:16159:11)
at recursivelyTraversePassiveUnmountEffects (react-dom-client.development.js:16105:11)
at commitPassiveUnmountOnFiber (react-dom-client.development.js:16117:11)
at recursivelyTraversePassiveUnmountEffects (react-dom-client.development.js:16105:11)
at commitPassiveUnmountOnFiber (react-dom-client.development.js:16159:11)
getRootForUpdatedFiber @ react-dom-client.development.js:4624
enqueueConcurrentHookUpdate @ react-dom-client.development.js:4584
dispatchSetStateInternal @ react-dom-client.development.js:9167
dispatchSetState @ react-dom-client.development.js:9127
eval @ index.tsx:106
react_stack_bottom_frame @ react-dom-client.development.js:26001
runWithFiberInDEV @ react-dom-client.development.js:872
commitHookEffectListUnmount @ react-dom-client.development.js:13316
commitHookPassiveUnmountEffects @ react-dom-client.development.js:13347
commitPassiveUnmountEffectsInsideOfDeletedTree_begin @ react-dom-client.development.js:16264
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16085
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16117
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16105
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16159
installHook.js:1 The 'navigation' object hasn't been initialized yet. This might happen if you don't have a navigator mounted, or if the navigator hasn't finished mounting. See https://reactnavigation.org/docs/navigating-without-navigation-prop#handling-initialization for more details.
overrideMethod @ installHook.js:1
eval @ console.js:44
acc.<computed> @ createNavigationContainerRef.js:58
t7 @ RightModalNavigator.tsx:237
eval @ RightModalNavigator.tsx:256
eval @ useFocusEffect.js:74
react_stack_bottom_frame @ react-dom-client.development.js:26001
runWithFiberInDEV @ react-dom-client.development.js:872
commitHookEffectListUnmount @ react-dom-client.development.js:13316
commitHookPassiveUnmountEffects @ react-dom-client.development.js:13347
commitPassiveUnmountEffectsInsideOfDeletedTree_begin @ react-dom-client.development.js:16264
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16085
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16127
flushPassiveEffects @ react-dom-client.development.js:18428
flushPendingEffects @ react-dom-client.development.js:18358
flushSpawnedWork @ react-dom-client.development.js:18323
commitRoot @ react-dom-client.development.js:17955
commitRootWhenReady @ react-dom-client.development.js:16824
performWorkOnRoot @ react-dom-client.development.js:16722
performSyncWorkOnRoot @ react-dom-client.development.js:18972
flushSyncWorkAcrossRoots_impl @ react-dom-client.development.js:18814
processRootScheduleInMicrotask @ react-dom-client.development.js:18853
eval @ react-dom-client.development.js:18991
installHook.js:1 The 'navigation' object hasn't been initialized yet. This might happen if you don't have a navigator mounted, or if the navigator hasn't finished mounting. See https://reactnavigation.org/docs/navigating-without-navigation-prop#handling-initialization for more details.
overrideMethod @ installHook.js:1
eval @ console.js:44
acc.<computed> @ createNavigationContainerRef.js:58
t7 @ RightModalNavigator.tsx:238
eval @ RightModalNavigator.tsx:256
eval @ useFocusEffect.js:74
react_stack_bottom_frame @ react-dom-client.development.js:26001
runWithFiberInDEV @ react-dom-client.development.js:872
commitHookEffectListUnmount @ react-dom-client.development.js:13316
commitHookPassiveUnmountEffects @ react-dom-client.development.js:13347
commitPassiveUnmountEffectsInsideOfDeletedTree_begin @ react-dom-client.development.js:16264
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16085
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16127
flushPassiveEffects @ react-dom-client.development.js:18428
flushPendingEffects @ react-dom-client.development.js:18358
flushSpawnedWork @ react-dom-client.development.js:18323
commitRoot @ react-dom-client.development.js:17955
commitRootWhenReady @ react-dom-client.development.js:16824
performWorkOnRoot @ react-dom-client.development.js:16722
performSyncWorkOnRoot @ react-dom-client.development.js:18972
flushSyncWorkAcrossRoots_impl @ react-dom-client.development.js:18814
processRootScheduleInMicrotask @ react-dom-client.development.js:18853
eval @ react-dom-client.development.js:18991
installHook.js:1 The 'navigation' object hasn't been initialized yet. This might happen if you don't have a navigator mounted, or if the navigator hasn't finished mounting. See https://reactnavigation.org/docs/navigating-without-navigation-prop#handling-initialization for more details.
overrideMethod @ installHook.js:1
eval @ console.js:44
acc.<computed> @ createNavigationContainerRef.js:58
isTopmostRouteModalScreen @ Navigation.ts:773
eval @ BaseModal.tsx:120
eval @ BaseModal.tsx:162
react_stack_bottom_frame @ react-dom-client.development.js:26001
runWithFiberInDEV @ react-dom-client.development.js:872
commitHookEffectListUnmount @ react-dom-client.development.js:13316
commitHookPassiveUnmountEffects @ react-dom-client.development.js:13347
commitPassiveUnmountEffectsInsideOfDeletedTree_begin @ react-dom-client.development.js:16264
recursivelyTraversePassiveUnmountEffects @ react-dom-client.development.js:16085
commitPassiveUnmountOnFiber @ react-dom-client.development.js:16127
flushPassiveEffects @ react-dom-client.development.js:18428
flushPendingEffects @ react-dom-client.development.js:18358
flushSpawnedWork @ react-dom-client.development.js:18323
commitRoot @ react-dom-client.development.js:17955
commitRootWhenReady @ react-dom-client.development.js:16824
performWorkOnRoot @ react-dom-client.development.js:16722
performSyncWorkOnRoot @ react-dom-client.development.js:18972
flushSyncWorkAcrossRoots_impl @ react-dom-client.development.js:18814
processRootScheduleInMicrotask @ react-dom-client.development.js:18853
eval @ react-dom-client.development.js:18991
Workaround:
If you add a second line for the submitsTo, then the app doesn't crash, e.g. this CSV won't crash:
csv email,role,submitsTo submitter+test@example.com,Member,manager+test@example.com manager+test@example.com,Member,submitter+test@example.com
Platforms:
Select the officially supported platforms where the issue was reproduced:
- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome / Safari
Screenshots/Videos
employee_csv_crash.mov
Issue Owner
Current Issue Owner: @Krishna2323Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~022038806855990952402
- Upwork Job ID: 2038806855990952402
- Last Price Increase: 2026-03-31
- Automatic offers:
- FitseTLT | Contributor | 111029984
Activity
melvin-bot commentedon Mar 31, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Krishna2323 (
External)[-]App crashes when importing CSV of employees[/-][+][$250] App crashes when importing CSV of employees[/+]melvin-bot commentedon Mar 31, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022038806855990952402
Krishna2323 commentedon Mar 31, 2026
@francoisl lets remove the external and help wanted label until @MelvinBot posts a proposal.
trasnake87 commentedon Mar 31, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
The app crashes with "Maximum update depth exceeded" when importing a CSV of employees via Members > Import Spreadsheet, because React enters an infinite render loop.
What is the root cause of that problem?
The
closeImportPageAndModalcallback in bothImportedMembersPage.tsxandImportedMembersConfirmationPage.tsxis defined as a plain inline function (not memoized), but it's passed toImportSpreadsheetConfirmModalwhich includes it in auseEffectdependency array at https://github.com/Expensify/App/blob/main/src/components/ImportSpreadsheetConfirmModal.tsx#L46. When the API response setsshouldFinalModalBeOpened: true, the effect fires and callsshowConfirmModal(), which updates ModalProvider state, triggering a parent re-render. SincecloseImportPageAndModalis not wrapped inuseCallback, it gets a new reference on every render, causing the effect to re-fire, callingshowConfirmModal()again — creating an infinite loop.What changes do you think we should make in order to solve the problem?
We should wrap
closeImportPageAndModalinuseCallbackin both pages so the reference stays stable across re-renders.In
src/pages/workspace/members/ImportedMembersPage.tsx(~line 220):In
src/pages/workspace/members/ImportedMembersConfirmationPage.tsx(~line 103):This stabilizes the function reference, preventing the
useEffectinImportSpreadsheetConfirmModalfrom re-firing on every render and breaking the infinite loop.trasnake87 commentedon Mar 31, 2026
Contributor details
Your Expensify account email: trasnake87@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~010f770315ab181656
melvin-bot commentedon Mar 31, 2026
✅ Contributor details stored successfully. Thank you for contributing to Expensify!
MelvinBot commentedon Mar 31, 2026
Proposal
What is the root cause of that problem?
The crash is caused by an infinite render loop in
ImportSpreadsheetConfirmModal.tsx. The component'suseEffect(line 32-46) listscloseImportPageAndModalandshowConfirmModalas dependencies, but neither function is memoized:closeImportPageAndModalinImportedMembersConfirmationPage.tsx(lines 103-109) is a plain arrow function — not wrapped inuseCallback— so it gets a new reference on every render.showConfirmModalinuseConfirmModal.ts(lines 10-18) is also a plain function, creating a new reference each render.When the import API responds and
shouldFinalModalBeOpenedbecomestrue, theuseEffectfires and callsshowConfirmModal(). Because no deduplicationidis passed toshowModal()inModalContext.tsx, each call pushes a new modal onto the stack viasetModalStack(), triggering a re-render. The re-render creates newcloseImportPageAndModalandshowConfirmModalreferences, which re-trigger theuseEffect, which callsshowConfirmModal()again — creating an infinite loop until React throws "Maximum update depth exceeded."Why the workaround works: When the CSV has a second row for the
submitsToemail with a role, thesubmitsTomember is already present in the data, soisRoleMissingstaysfalse(line 202). This bypassesImportedMembersConfirmationPageentirely and callsimportPolicyMembers()directly, avoiding the unstable function references that cause the loop.Why only single-row CSVs trigger this: When importing a single employee with a
submitsToemail that isn't in the CSV, a synthesized member entry withrole: ''is created (lines 154-166), which forcesisRoleMissing = trueand routes to the confirmation page where the bug lives.What changes do you think we should make in order to solve the problem?
Wrap
closeImportPageAndModalinuseCallbackin bothImportedMembersConfirmationPage.tsx(line 103) andImportedMembersPage.tsx(line 220) to ensure stable function references.Wrap
showConfirmModalinuseCallbackinuseConfirmModal.ts(line 10) so it doesn't create a new reference each render.Add a ref guard in
ImportSpreadsheetConfirmModal.tsxto prevent callingshowConfirmModal()more than once per visibility change, as a defense-in-depth measure.What alternative solutions did you explore? (Optional)
An alternative would be to pass a stable
idtoshowModal()insideuseConfirmModalso thatModalContext.tsxcan deduplicate calls. However, this alone wouldn't fix the infinite effect re-execution — the unstable function references would still cause theuseEffectto fire on every render, so memoizing the functions is the more correct fix.Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR,@MelvinBot <your feedback>to refine this analysis, or explain why you are rejecting Melvin's proposal.wildan-m commentedon Mar 31, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
The app crashes with "Maximum update depth exceeded" when importing a CSV of employees where a
submitsToemail is not included as an explicit row in the CSV, because importing goes through the confirmation page flow which triggers an infinite re-render loop.What is the root cause of that problem?
The
useEffectinImportSpreadsheetConfirmModalcallsshowConfirmModal()whenisVisiblebecomes true, butshowConfirmModalis an unstable dependency that creates a re-entry loop:App/src/components/ImportSpreadsheetConfirmModal.tsx
Lines 32 to 46 in cb8b1be
The cycle works as follows:
shouldFinalModalBeOpened: true→isVisiblebecomes true → effect fires → callsshowConfirmModal()showConfirmModal()callsshowModal()which callssetModalStack()inModalProvider→ ModalProvider re-rendersshowModal/closeModalreferences (sinceuseCallbackwas removed in commit6f209469c71):App/src/components/Modal/Global/ModalContext.tsx
Lines 45 to 89 in cb8b1be
useConfirmModalhook, which creates a newshowConfirmModalwrapper:App/src/hooks/useConfirmModal.ts
Lines 10 to 17 in cb8b1be
showConfirmModaldependency in the useEffect has changed → effect re-firesisVisibleis still true (the.then(() => closeImportPageAndModal())microtask hasn't had a chance to run yet) →showConfirmModal()is called again → GOTO step 2Each iteration adds a new modal to the stack (since no
idis passed for deduplication). React eventually hits the nested update limit and throws "Maximum update depth exceeded".The single-employee CSV triggers this because when
submitsToreferences a non-member, the manager is auto-added with an empty role (isRoleMissing = true), routing toImportedMembersConfirmationPagewhere the crash occurs. The two-employee workaround CSV keepsisRoleMissing = false, bypassing the confirmation page entirely.What changes do you think we should make in order to solve the problem?
Add a ref guard in
ImportSpreadsheetConfirmModalto preventshowConfirmModal()from being called more than once per visibility cycle. WhenisVisiblebecomes true and the modal is shown, the ref blocks subsequent effect re-fires from callingshowConfirmModal()again. WhenisVisiblebecomes false, the ref resets for the next cycle.This is a single-file fix in
src/components/ImportSpreadsheetConfirmModal.tsxthat protects all 8+ consumers of this component (members, tags, categories, per diem, transactions imports).Compare branch: https://github.com/Expensify/App/compare/main...wildan-m:App:wildan/86704-fix-csv-import-crash?expand=1
What alternative solutions did you explore? (Optional)
Wrapping
closeImportPageAndModalinuseCallbackin each consumer page stabilizes one dependency but does not break the loop —showConfirmModalis still unstable and is the primary trigger. WrappingshowConfirmModalinuseCallbackinuseConfirmModal.tsis also ineffective because it closes overcontext.showModalfromModalProvider, which itself is unstable since commit6f209469c71removeduseCallbackfromshowModal/closeModal. The underlying instability is in the ModalProvider context — the ref guard approach avoids needing to fix the context layer and instead prevents the re-entry directly where it matters.64 remaining items
mallenexpensify commentedon Apr 30, 2026
@Krishna2323 plz complete the BZ checklist and tag me in a post once you have. Thx
(I think we still need/want)
melvin-bot commentedon May 4, 2026
@Krishna2323 Huh... This is 4 days overdue. Who can take care of this?
Krishna2323 commentedon May 5, 2026
BugZero Checklist:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: Refactor ConfirmModal to useConfirmModal | Batch 1 #77646 (comment)
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue: https://github.com/Expensify/Expensify/issues/634042
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
Zapier Logs
Run ID: 00040eee-54df-a9d0-ec76-783e994dc744Krishna2323 commentedon May 5, 2026
@mallenexpensify checklist completed ^
marufsharifi commentedon May 7, 2026
@mallenexpensify, I believe I may be due for payment for this issue.
My initial approach was accepted here, and I was assigned to the issue here. I then implemented the solution and opened PR #87085.
After further review and discussion, the team decided to go with another approach instead. Since I was officially assigned and completed the implementation work for the PR, I wanted to kindly check whether compensation would still apply in this case.
Thank you for your time and consideration.
mallenexpensify commentedon May 9, 2026
ooooh, edge case!
@marufsharifi can you please accept the job below? Please reply here and tag me once you have.
https://www.upwork.com/jobs/~022052911316955730574
Reason for compensation being due
marufsharifi commentedon May 9, 2026
@mallenexpensify, I've accepted the offer. thanks.
mallenexpensify commentedon May 11, 2026
Payment Summary
Contributor: @marufsharifi paid $250 via Upwork
Krishna2323 commentedon May 15, 2026
Requested in ND.
laurenreidexpensify commentedon May 19, 2026
$250 approved for @Krishna2323