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 @tanstack/query-devtools on legacy browsers #5997

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

dmitrylyzo
Copy link
Contributor

@dmitrylyzo dmitrylyzo commented Aug 30, 2024

Changes

  • Add @tanstack/query-devtools to Babel.
  • Don't load ReactQueryDevtools on unsupported devices.
  • Don't use devtools on the TV as the navigation is weird.

Issues
N/A
development build doesn't work on legacy devices.

Remarks

  • webOS 1.2 - ReactQueryDevtools is skipped.
  • webOS 5 - ReactQueryDevtools seems to work.
    We probably don't need it on TVs though - weird navigation.

@dmitrylyzo dmitrylyzo added the enhancement Improve existing functionality or small fixes label Aug 30, 2024
@dmitrylyzo dmitrylyzo requested a review from a team as a code owner August 30, 2024 07:34
src/RootApp.tsx Outdated
@@ -18,7 +18,9 @@ const RootApp = () => (
</WebConfigProvider>
</UserSettingsProvider>
</ApiProvider>
<ReactQueryDevtools initialIsOpen={false} />
{window.Proxy && ( // '@tanstack/query-devtools' requires 'Proxy', which cannot be polyfilled for legacy browsers
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also check browser.tv?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To hide it on TVs?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes since it makes navigation weird... although I have been thinking about adding a custom menu entry or something for it because I hate the floating button 😅

Copy link

sonarcloud bot commented Sep 5, 2024

@jellyfin-bot
Copy link
Collaborator

Cloudflare Pages deployment

Latest commit 0fbfda882d72b37f6cfb089cf5982335f1a9c661
Status ✅ Deployed!
Preview URL https://22dad700.jellyfin-web.pages.dev
Type 🔀 Preview

@thornbill thornbill added this to the v10.10.0 milestone Sep 6, 2024
@thornbill thornbill merged commit 4bcbf65 into jellyfin:master Sep 6, 2024
12 checks passed
@dmitrylyzo dmitrylyzo deleted the fix-legacy-devtools branch September 6, 2024 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve existing functionality or small fixes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants