mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-10-18 06:03:22 +00:00
useHistory fix
This commit is contained in:
parent
fb05dd2d8c
commit
1d6b7d2ead
@ -19,6 +19,7 @@ function useHistoryState(initialValue, key) {
|
||||
useEffect(() => {
|
||||
if (state !== latestValue.current) {
|
||||
throttledSetHistoryState.current(state);
|
||||
latestValue.current = state;
|
||||
}
|
||||
|
||||
// Cleanup logic
|
||||
|
Loading…
Reference in New Issue
Block a user