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

Facebook Like component doesnt update by share value or any other value #225

Open
offkeydev opened this issue Aug 9, 2023 · 1 comment

Comments

@offkeydev
Copy link

<button style={{position: 'relative', zIndex: 100000}} onClick={() => setTestShare(!testShare)}>Update share</button> <FacebookProvider appId={FACEBOOK_ID} > <Like href={href} colorScheme={colorScheme} layout={layout} share={testShare} size={size} /> </FacebookProvider>

Do i do something wrong, Like component is not update when i chage share bolean value

@offkeydev
Copy link
Author

Im not shure that the problem is in library but, Starting from library version 9.0.1, updating props in the library does not work properly, this code solves this problem.

window.FB?.XFBML?.parse();

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

No branches or pull requests

1 participant