You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got the most recent RNRF 4.0.0.beta-28 , and migrating from v3 . The docs say that Switch is deprecated, but what is an example for v4 that does the same effect? For example this is v3:
Basically, if redux has app.persisted truthy, show 'wait', otherwise show 'loggedIn' if auth.token is set, otherwise default to 'auth'.
The migration does says "Switch is removed - you may use onEnter/onExit handlers for more flexible logic." - but I don't see any examples, not even in the example app.
How do I rewrite this to work with v4?
The text was updated successfully, but these errors were encountered:
I've got the most recent RNRF 4.0.0.beta-28 , and migrating from v3 . The docs say that Switch is deprecated, but what is an example for v4 that does the same effect? For example this is v3:
Basically, if redux has app.persisted truthy, show 'wait', otherwise show 'loggedIn' if auth.token is set, otherwise default to 'auth'.
The migration does says "Switch is removed - you may use onEnter/onExit handlers for more flexible logic." - but I don't see any examples, not even in the example app.
How do I rewrite this to work with v4?
The text was updated successfully, but these errors were encountered: