Code Monkey home page Code Monkey logo

Comments (10)

KubaJastrz avatar KubaJastrz commented on September 22, 2024 3

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.

atomiks avatar atomiks commented on September 22, 2024 1

😭 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.

maciekgrzybek avatar maciekgrzybek commented on September 22, 2024

Totally understandable :) Thanks for maintaining it anyway :) I'll take a look a the library you mentioned :)

from tippyjs-react.

maciekgrzybek avatar maciekgrzybek commented on September 22, 2024

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.

atomiks avatar atomiks commented on September 22, 2024

@KubaJastrz fully agree. I'm going to put a notice on the README for newcomers but won't deprecate for now.

from tippyjs-react.

maciekgrzybek avatar maciekgrzybek commented on September 22, 2024

@KubaJastrz @atomiks looks like it's not the package itself. There's something else going on. Sorry for the confusion

from tippyjs-react.

paulm17 avatar paulm17 commented on September 22, 2024

@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.

atomiks avatar atomiks commented on September 22, 2024

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.

atomiks avatar atomiks commented on September 22, 2024

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.

Nantris avatar Nantris commented on September 22, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.