Page MenuHomePhabricator

[Flow202][native][skip-ci] [36/x] Type Redux state when it includes navState from dev tools
ClosedPublic

Authored by ashoat on Nov 27 2023, 1:17 AM.
Tags
None
Referenced Files
F3180003: D10020.id33903.diff
Fri, Nov 8, 3:59 AM
Unknown Object (File)
Wed, Nov 6, 7:17 AM
Unknown Object (File)
Thu, Oct 17, 11:50 AM
Unknown Object (File)
Thu, Oct 17, 11:49 AM
Unknown Object (File)
Thu, Oct 17, 11:49 AM
Unknown Object (File)
Thu, Oct 17, 11:49 AM
Unknown Object (File)
Sep 6 2024, 3:27 AM
Unknown Object (File)
Sep 6 2024, 2:31 AM
Subscribers

Details

Summary

We have a unique integration with redux-devtools that shows updates to ReactNav state and Redux state simultaneously. This diff introduces the type MonitorActionState for this combined state.

In addition, we have some custom code to support the dev tools user attempting to revert the state to a particular point. In those scenarios, navState actually gets inserted into the Redux state, and NavFromReduxHandler is responsible for extracting the nav state from the Redux state and putting it into ReactNav. This diff fixes up the types for NavFromReduxHandler as well.

NOTE: CI will fail on this diff. I considered the possibility of fixing Flow errors BEFORE upgrading Flow, but it wasn't possible... in some cases, the fixes to support the new version of Flow caused errors in the old version. I could have hidden these type errors with $FlowFixMe lines and then later revert those, but that seemed like too much busy work.

Depends on D10019

Test Plan

Confirm the Flow errors go away

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable