Sub-issue of #81849, coming from here.
Comment related to this task.
Task
IOURequestStepParticipants has 17 Onyx subscriptions but only 1 is used for rendering; the other 16 are callback-only. This causes unnecessary re-renders in the Create Expense flow.
- Split into a router with variants per flow
- Move callback-only subscriptions behind refs
- Extract duplicated tab-reset logic shared between
IOURequestStartPage and DistanceRequestStartPage into shared hooks
Sub-issue of #81849, coming from here.
Comment related to this task.
Task
IOURequestStepParticipants has 17 Onyx subscriptions but only 1 is used for rendering; the other 16 are callback-only. This causes unnecessary re-renders in the Create Expense flow.
IOURequestStartPageandDistanceRequestStartPageinto shared hooks