I want to add a new react hook called prestate hook this hook will allow accessing previous values that the user assigned
I'm going to work on it if someone is interested in it then please leave a comment
usePrevious is a well known custom hook and I assume it is what you're asking for. I'm not sure there's a place for it in core though as it has a specific use case and not something that would be used in every application unlike those already part of react core.
Thanks for making your interest in it. So a lot of guys are interested, But they not understanding what I'm actually trying to say.
prestate Hook is just not going to be Hook that contains the previous values but it also contains some cool methods Like:
I will soon put a code example that helps to visualize what I'm trying to say.
|Issue Title||Created Date||Updated Date|