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

Fixes wrong async useEffect usage #40

Closed

Conversation

pepijn-vanvlaanderen
Copy link

This plugin is broken in the latest Strapi version (v4.11.0) that uses React18. The error that is triggered is caused by the wrong implementation of an async function in some useEffect hooks.

This PR implements the async useEffect properly and fixes the breaking issue with the latest Strapi version.

@Mcastres
Copy link
Collaborator

Mcastres commented Jun 8, 2023

Hello @pepijn-vanvlaanderen 👋 Thanks for this PR! Very much appreciated!
Can you give me more context about the issue? I don't see any error on my side :/

Edit: Oh I found it! All good to me! Thanks a lot!

@Mcastres
Copy link
Collaborator

Mcastres commented Jun 8, 2023

I directly pushed it on the main branch forgetting that it was a PR 😅
Thank you very much @pepijn-vanvlaanderen 🙏

Release: https://github.com/strapi/strapi-plugin-seo/releases/tag/v1.9.1

@Mcastres Mcastres closed this Jun 8, 2023
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.

2 participants