Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

setProps in onCreate has no effect which breaks certain plugins. #348

Open
lukesmurray opened this issue Feb 15, 2022 · 1 comment
Open

Comments

@lukesmurray
Copy link

I tried using the mouseRestPlugin with the react tippy component.

However, props set in instance.setProps seem to be overwritten.
Is this a known issue? It seems to be related to the fact that the component props are merged after the first render using an isomorphic layout effect.
How would you get the mouseRest plugin to work without setting the props in onCreate?

CodeSandbox Reproduction

@lukesmurray
Copy link
Author

found a workaround for my use case where I don't need to use a plugin so this can be closed if it is no longer supported.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant