You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature Request: Add generic type support to useStateObject
Currently, useStateObject returns a value typed as SerializableObject, which does not provide type safety or IntelliSense when accessing deeply nested properties.
const[queryData,setQueryData]=useStateObject({name: "queryData"});// Currently: queryData is SerializableObject → no type safetyconsole.log(queryData.items);// ❌ no autocomplete or type checking
It would be very helpful if useStateObject could support a generic type parameter, as in: