Giter VIP home page Giter VIP logo

Comments (7)

berzniz avatar berzniz commented on May 25, 2024

Can you provide a basic example? I have it working in a react/redux setup without seeing the issue.

from react-overdrive.

arunkjn avatar arunkjn commented on May 25, 2024

I will try to replicate it in a fiddle

from react-overdrive.

green-arrow avatar green-arrow commented on May 25, 2024

@berzniz - If it helps any, it looks like an issue with the context of the children not being preserved. I have children of the Overdrive component at various layers that use context for theming purposes, and any time the overdrive component animates, non of the children components are able to get the prop they need off of context and an error is thrown saying it's undefined.

I'm not sure why this is happening, since everything I'm reading says that React.cloneElement should preserve context properly in React 0.14 and up.

from react-overdrive.

berzniz avatar berzniz commented on May 25, 2024

@green-arrow is it breaking while animating? or even before that?

The animation happens on a different ReactDOM.render tree, so I can see why the context might not transfer there. I'll try to see if we can clone that as well.

from react-overdrive.

green-arrow avatar green-arrow commented on May 25, 2024

@berzniz to be honest I can't really tell when it happens. As soon as I reorder some items, they automatically move to the new position (no animation) and I get a console error about the context.

I think the animation not happening is probably an issue on my end, but not sure.

from react-overdrive.

berzniz avatar berzniz commented on May 25, 2024

Thanks @Anujan for providing the fix. It's merged but due to some git magic, the contribution was squashed and your name is not in the contributors list. Sorry.

from react-overdrive.

green-arrow avatar green-arrow commented on May 25, 2024

Thanks @arunkjn and @berzniz, that worked wonderfully.

from react-overdrive.

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.