use_previous
def use_previous(value: T) -> T:
...
Returns the value from a previous render phase, or the current value on the first render.
Example
Current: 4
Previous: 4
def use_previous(value: T) -> T:
...
Returns the value from a previous render phase, or the current value on the first render.
Current: 4
Previous: 4