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

Switching to usehooks-ts #69

Merged
merged 1 commit into from
Apr 17, 2024
Merged

Switching to usehooks-ts #69

merged 1 commit into from
Apr 17, 2024

Conversation

mirhamasala
Copy link
Collaborator

@mirhamasala mirhamasala commented Apr 17, 2024

We encountered a server-side error with the @uidotdev/usehooks library: useMediaQuery is a client-only hook, which resulted in failures during server rendering. This issue is known.

The recommended workaround involves using the useIsClient hook to determine the rendering environment (client vs. server). However, after evaluating this solution, we've decided it's not ideal.

Instead, we have opted to switch to the usehooks-ts library, which not only addresses this specific issue but also appears to be better maintained.

Copy link

netlify bot commented Apr 17, 2024

Deploy Preview for filecoin-foundation ready!

Name Link
🔨 Latest commit 490e34a
🔍 Latest deploy log https://app.netlify.com/sites/filecoin-foundation/deploys/661fd5539262eb0008015b84
😎 Deploy Preview https://deploy-preview-69--filecoin-foundation.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 98 (🟢 up 5 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 77 (no change from production)
PWA: -
View the detailed breakdown and full score reports

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

@mirhamasala mirhamasala changed the title Use usehooks-ts Switching to usehooks-ts Apr 17, 2024
@mirhamasala mirhamasala merged commit b5f2fc4 into main Apr 17, 2024
6 checks passed
@mirhamasala mirhamasala deleted the mm/usehooks-ts branch April 17, 2024 14:04
mirhamasala added a commit that referenced this pull request Apr 25, 2024
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.

1 participant