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: Tooltip - AbortController is not defined in SSR mode (Nuxt) (#4017) #4019

Merged
merged 2 commits into from
Mar 6, 2024

Conversation

kikuomax
Copy link
Collaborator

@kikuomax kikuomax commented Mar 4, 2024

Fixes

Proposed Changes

  • In Tooltip, move window.AbortController access inside the window availability check
  • Prepare for controller possibly null

Fixes the bug that `Tooltip` did not work in Server Side Rendering
(SSR) due to `window.AbortController` use; i.e., no `window` is
available in SSR. Moves `window.AbortController` access inside the
`window` availability check.
@kikuomax kikuomax requested a review from wesdevpro March 4, 2024 04:15
Copy link

netlify bot commented Mar 4, 2024

Deploy Preview for buefy-org ready!

Name Link
🔨 Latest commit fb8ad00
🔍 Latest deploy log https://app.netlify.com/sites/buefy-org/deploys/65e54f9e73b6d30008d30b25
😎 Deploy Preview https://deploy-preview-4019--buefy-org.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@kikuomax kikuomax marked this pull request as draft March 4, 2024 04:25
@kikuomax
Copy link
Collaborator Author

kikuomax commented Mar 4, 2024

Stays draft until we confirm it works with Nuxt 2.

Adds unreleased entry for v0.9.29.
Lists the fix of the `window.AbortController` use in SSR.
@kikuomax kikuomax marked this pull request as ready for review March 5, 2024 21:19
Copy link
Member

@wesdevpro wesdevpro left a comment

Choose a reason for hiding this comment

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

Looks great to me!

@kikuomax kikuomax merged commit f3a964d into dev Mar 6, 2024
5 checks passed
@kikuomax kikuomax deleted the fix-window-abort-controller branch March 6, 2024 06:49
kikuomax added a commit to kikuomax/buefy that referenced this pull request Apr 2, 2024
…fy#4017) (buefy#4019)

* fix: Tooltip did not work in SSR due to AbortController

Fixes the bug that `Tooltip` did not work in Server Side Rendering
(SSR) due to `window.AbortController` use; i.e., no `window` is
available in SSR. Moves `window.AbortController` access inside the
`window` availability check.

* docs: update CHANGELOG

Adds unreleased entry for v0.9.29.
Lists the fix of the `window.AbortController` use in SSR.
kikuomax added a commit to ntohq/buefy-next that referenced this pull request Apr 3, 2024
…fy#4017) (buefy#4019)

* fix: Tooltip did not work in SSR due to AbortController

Fixes the bug that `Tooltip` did not work in Server Side Rendering
(SSR) due to `window.AbortController` use; i.e., no `window` is
available in SSR. Moves `window.AbortController` access inside the
`window` availability check.

* docs: update CHANGELOG

Adds unreleased entry for v0.9.29.
Lists the fix of the `window.AbortController` use in SSR.
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.

Tooltip - AbortController is not defined in SSR mode (Nuxt)
3 participants