Add a prop to useStateHistory to limit the number of items in the history #6930
mohammad-reza-rahbar
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When an abject is large, it is better to put a limit on the number of objects that can be stored in the history array. So when current history array index reaches the limit, the history array gets shifted and the new object is added as the last element of the array.
Beta Was this translation helpful? Give feedback.
All reactions