#Remix v1.6.5 loader types -- SerializeObject conflicts with prop type of component
1 messages · Page 1 of 1 (latest)
I'm getting conflicts with the return type of my loader.
Before v 1.65+ AKA when SerializeObject was introduced, I recall I didn't face this issue when I passed down type to the useLoader generic like this:
useLoaderData<API_TYPE>
EDIT: resolved, I did end up switching some types around to get this to work
Isn’t it SerializeFrom we should be using?
SerializeFrom is to manually get the loader's serialized data type if you are doing something other than just using useLoaderData.
It's an escape hatch for edge cases