vercel / react-tweet

Embed tweets in your React application.
https://react-tweet.vercel.app
MIT License
1.6k stars 86 forks source link

Handle `default` export in SWR #84

Closed lfades closed 1 year ago

lfades commented 1 year ago

This is an issue that happened to me in the pages directory of Next.js when using react-tweet with SWR. It can be fixed with a check for default.

Also updated the Next.js app to latest.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Ignored Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **react-tweet-create-react-app** | ⬜️ Ignored ([Inspect](https://vercel.com/vercel-labs/react-tweet-create-react-app/Acspu2fu55KRtVGxzkEx1vkSQdqD)) | [Visit Preview](https://react-tweet-create-react-app-git-fix-swr-import-vercel-labs.vercel.app) | | Jun 21, 2023 2:34pm | | **react-tweet-next-app** | ⬜️ Ignored ([Inspect](https://vercel.com/vercel-labs/react-tweet-next-app/ByngeCJjcEua7MLL3C3uzKtz4w1m)) | [Visit Preview](https://react-tweet-next-app-git-fix-swr-import-vercel-labs.vercel.app) | | Jun 21, 2023 2:34pm | | **react-tweet-vite-app** | ⬜️ Ignored ([Inspect](https://vercel.com/vercel-labs/react-tweet-vite-app/B8s312aK1Mchym1FrMGEsqX2kv57)) | [Visit Preview](https://react-tweet-vite-app-git-fix-swr-import-vercel-labs.vercel.app) | | Jun 21, 2023 2:34pm |