freiksenet / react-kinetic

HTML5 Canvas via KineticJS using React.
http://freiksenet.github.io/react-kinetic/
MIT License
66 stars 7 forks source link

Unusable with the newest React version? #20

Open danielrenninghoff opened 9 years ago

danielrenninghoff commented 9 years ago

Hello,

awesome component, but I can't use it :(.

When trying out your examples, I get warnings like

Warning: Required context `kineticContainer` was not specified in `Star`. Check the render method of `App`.

and an error

Uncaught TypeError: Cannot read property 'add' of undefined

It seems like kineticContainer is somehow undefined. It probably has to do with some changes in the use of react contexts.

I'm a noob when it comes to react, this is actually my first time using it (for drawing a canvas), so I am not able to fix this myself. It would be awesome if a fix could be found! :)

freiksenet commented 9 years ago

Thanks for the report!

It's a known problem, I was trying to fix it for a while, no luck this far. I'll get back to it eventually. There is some problem with transferring context in newer version of React, probably related to new way components are initialized.

matthiaskrieft commented 9 years ago

Awesome, absolutely! Unfortunately I can't use it either because it requires react 0.11.

Is there any progress on this one?

freiksenet commented 9 years ago

It will have to wait until version 0.14, when React will split to base react and renderer packanges, then react-kinetic can be one of such renderers.

danvk commented 9 years ago

Any update on this? React 0.14 RC is out.