Skip to content

fix: allow initialData #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 20, 2024
Merged

fix: allow initialData #69

merged 1 commit into from
Apr 20, 2024

Conversation

seriouslag
Copy link
Collaborator

@seriouslag seriouslag commented Apr 16, 2024

This PR allows initialData to be set on the hooks and passed to useQuery.

I am unsure why we initially added it to the omit list.
I believe it was to type it so we could override the types.

It seems the types now propagate the override type to initialData.

I haven't done a lot of testing on this to be specific.

If someone has time to test this build, that would be great.

Fixes #68

@seriouslag seriouslag requested a review from 7nohe April 16, 2024 16:59
@seriouslag seriouslag added the enhancement New feature or request label Apr 17, 2024
@7nohe 7nohe merged commit a5b1dc6 into main Apr 20, 2024
@7nohe 7nohe deleted the fix/allow-initialData branch April 20, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InitialData Omitted from queries.
2 participants