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

fix(types): onlineManager: setup function needs to accept the online boolean, and the cleanup function shouldn't #2053

Merged
merged 5 commits into from
Mar 30, 2021
Merged

Conversation

TkDodo
Copy link
Collaborator

@TkDodo TkDodo commented Mar 30, 2021

fixes #2048

@vercel
Copy link

vercel bot commented Mar 30, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tannerlinsley/react-query/37BwGWe26RznyruNcUFZC62Y3paW
✅ Preview: https://react-query-git-fork-tkdodo-feature-fix-online-manage-21cf22.vercel.app

@tannerlinsley
Copy link
Collaborator

🎉 This PR is included in version 3.13.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@TkDodo TkDodo deleted the feature/fix-online-manager-types branch March 31, 2021 07:10
fmauquie added a commit to fmauquie/react-query that referenced this pull request Apr 20, 2021
Typings did not allow passing a function taking `setFocused` to addEventListener

Fixing by using the same typings as in `onlineManager.ts`, same behavior as set in TanStack#2053
TkDodo pushed a commit that referenced this pull request Apr 24, 2021
Typings did not allow passing a function taking `setFocused` to addEventListener

Fixing by using the same typings as in `onlineManager.ts`, same behavior as set in #2053
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect types for onlineManager.setEventListener
2 participants