Skip to content
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

Change return type of OnLoadData interface #41

Open
nedsalk opened this issue Jul 6, 2021 · 1 comment
Open

Change return type of OnLoadData interface #41

nedsalk opened this issue Jul 6, 2021 · 1 comment

Comments

@nedsalk
Copy link

nedsalk commented Jul 6, 2021

Change it to a generic that's inferred from the function passed via useDataState. We can then take it steps further from there, for example in the initialFilter, which could then be changed to Partial<Record<keyof filter-related function parameter, corresponding value type>>.

@nedsalk
Copy link
Author

nedsalk commented Jul 6, 2021

Make initialFilter read from persistState if it exists?

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

No branches or pull requests

1 participant