Comments (10)
Still it would be good to keep support as not everyone has a luxury to migrate everything all the time. I'll reserve some time today.
from tippyjs-react.
😭 I don't have the energy to fix this haha
In all honesty I kind of want to deprecate this package as it encourages bad patterns. I really recommend the new https://floating-ui.com/docs/react-dom-interactions package instead of this one!
That said, if you create a new CodeSandbox using React 18 with a simple usage of Tippy, there are no hooks errors. I suppose it might be something else in your app causing it, but I have no clue what :s
from tippyjs-react.
Totally understandable :) Thanks for maintaining it anyway :) I'll take a look a the library you mentioned :)
from tippyjs-react.
But just like @atomiks said before, it might be not related to React 18 per se. I'll dig deeper in our app 👌
from tippyjs-react.
@KubaJastrz fully agree. I'm going to put a notice on the README for newcomers but won't deprecate for now.
from tippyjs-react.
@KubaJastrz @atomiks looks like it's not the package itself. There's something else going on. Sorry for the confusion
from tippyjs-react.
@atomiks kinda confused, are you saying that react-dom-interactions package replaces tippy completely?
If it can be used with tippyjs, would be nice if you can make a sandbox with a basic example of integration between the two. That would probably give you an out too, with deprecation. Thanks
from tippyjs-react.
It's meant to replace @tippyjs/react
yes. The vanilla library is still its own thing but trying to wrap it in React was inherently problematic
The only thing it doesn't have that Tippy does have is "singletons", but the design behind them needs to be completely rethought because there are a bunch of issues with them. For now, it has FloatingDelayGroup
which satisfies one of the use cases of singletons.
from tippyjs-react.
Also I had this issue too (not with Tippy, but with the "invalid hooks" error) and it seemed like I still had a copy of React 17 being bundled in on my Parcel playground (in the Floating UI monorepo). I tried to upgrade only one package playground to React 18 but had to upgrade the whole monorepo all at once for it to work
from tippyjs-react.
@atomiks do you know of any resource for understanding what changes would need to be made to transition to Floating-UI? Or is it so different that all the code that relies on Tippy will just need to be rewritten?
Thank you for your fantastic work over many years!
from tippyjs-react.
Related Issues (20)
- Not able to set different placement for different targets of the same singleton HOT 1
- [FEATURE] Add Tippy as tooltip library
- Tooltip position not updated on first time mousehover , until mouse does not move
- Custom `content` type for Headless Tippy Singleton
- Property `aria-expanded` stays false on strict mode HOT 1
- Nested tippies and double tippies
- Headless Singleton calls render ahead of time
- When I put large text, the box doesn't fill all HOT 1
- Typescript 4.9.4 error @popperjs/core: This type parameter might need an `extends Obj` constraint.
- Inertia React HOT 1
- Error in Nextjs 13
- Plugins error (even though not loading any plugins) HOT 8
- Cannot render tooltip for svg elements
- Error in production, Tippy js not working after next js build HOT 3
- Issue with dynamic theme
- Error while updated nodejs version
- HTML only shown as regular text
- ESC key should hide tooltip for accessibility
- TippyJS not Updating getReferenceClientRect on Window Resize or Scroll
- How do I use "position: fixed" for tippy popup?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tippyjs-react.