Skip to content

Commit

Permalink
Restore navigation state in production
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwacker committed Oct 31, 2021
1 parent a3b556f commit 33b62d2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/navigators/navigation-utilities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,7 @@ export function useNavigationPersistence(persistenceKey: string) {
undefined,
)

// This feature is particularly useful in development mode.
// It is selectively enabled in development mode with
// the following approach. If you'd like to use navigation persistence
// in production, remove the __DEV__ and set the state to true
const [isRestored, setIsRestored] = useState(!__DEV__)
const [isRestored, setIsRestored] = useState(false)

const routeNameRef = useRef<string | undefined>()

Expand Down

0 comments on commit 33b62d2

Please sign in to comment.