State property not wanting to accept new parameters and needed a type casting when using!
on trying to do this everything is working fine but i have to typecast the state for passing new value to the next route! Why is that ? Isn't state made for passing props to the next route??
and other thing is how will I access This new state that I pased in my next route?
can I acces it directly from here or i need to use something like useRouter?
1 Reply
generous-apricotOP•2y ago
for now i am solving it like this:
extend the modification:
pass it:
use it: