`UseDataFunctionReturn<T>` omits properties of `T` defined as `never`
See original GitHub issueWhat version of Remix are you using?
1.6.5
Steps to Reproduce
I’ve put together a minimal reproduction case available here: https://codesandbox.io/s/heuristic-shockley-t1ks84?file=%2Fapp%2Froutes%2Findex.tsx
Expected Behavior
The useActionData<ActionData>() hook should contain all of the properties typed in ActionData
Actual Behavior
The useActionData<ActionData>() hook doesn’t have the properties typed as never in ActionData
Issue Analytics
- State:
- Created a year ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@rossipedia here’s wrapper function to get typed fetchers
Not sure. But note: to get the
Datetype, you have to use thesuperjsonhelper. Otherwise, you’ll get the JSON serialized type. So in that screenshot, it will betoday: stringif you’re using standardjsonon v1.6.5+