Skip to content

fix: useFind default typing broken#173

Open
mrfrase3 wants to merge 1 commit intomarshallswain:mainfrom
mrfrase3:patch-1
Open

fix: useFind default typing broken#173
mrfrase3 wants to merge 1 commit intomarshallswain:mainfrom
mrfrase3:patch-1

Conversation

@mrfrase3
Copy link

just pulled my hair out comparing the setup from project A to project B, where the data field returned from useFind in project B was not inferring the service type, and instead insisting on unknown[], finally looked at the package versions, long behold project B is running on the latest and A in on 4.4.0 😅

looks like this is the culprit: 4804ef4

if you don't explicitly provide a type for M, it assumes it's unknown. I managed to fix it by setting a default on the declaration <M = SvcModel>

Also taking out the ambiguity of the type, either its the override or the default type, not both

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant