I have a prop that changes when I update the state. How do I update my initial params when passing data to a screen?
props.authMsg gets updated, but not the initial param
<Stack.Screen initialParams={{authMsg: props.authMsg}} name="Login" component={Login} />
The param value stays the same.
<Text>{props.route.params.authMsg}</Text>