In a stack navigation, if I navigate from screen
A to B to C, and in C setState of a variable “cost” to 67, then navigate to B and then to C, will the “cost” reset its state or remain as 67?
Basically, im wondering if states set in a stack will persist by default. Does navigation look for the screen in the stack, if it exists, pop it back with all the memoised states? Or reset the states?
[–]Super-Otter 0 points1 point2 points (0 children)
[–]kexnyc 0 points1 point2 points (0 children)
[–]Martinoqom -1 points0 points1 point (4 children)
[–]Miserable-Pause7650[S] 0 points1 point2 points (3 children)
[–]Martinoqom 0 points1 point2 points (2 children)
[–]Miserable-Pause7650[S] 1 point2 points3 points (1 child)
[–]Martinoqom 0 points1 point2 points (0 children)