react-router icon indicating copy to clipboard operation
react-router copied to clipboard

Generic for useLocation to allow to provide type for Location State

Open arajg0909 opened this issue 7 months ago • 3 comments

The current implementation of useLocation does not allow for state type to be passed as a generic to Location return type. By just passing a simple generic we can safely type the state from the location.

arajg0909 avatar Jul 11 '24 00:07 arajg0909