tippyjs-react icon indicating copy to clipboard operation
tippyjs-react copied to clipboard

setProps in onCreate has no effect which breaks certain plugins.

Open lukesmurray opened this issue 3 years ago • 1 comments

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 avatar Feb 15 '22 21:02 lukesmurray

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.

lukesmurray avatar Feb 16 '22 01:02 lukesmurray