-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use separate prop-types package for compatibility with react16+ #18
Use separate prop-types package for compatibility with react16+ #18
Conversation
Thanks @chpill, that's a good catch. Is this backwards compatible with React 15? |
It should be, the prop-types package is strictly equivalent to what was included with react until v16. That said, I have only tested it with react16 (using some exclusions and this fork of rum )... I'll try to make use of this in other projects using react v15 to see if I see some breakage, but it is quite painful to test unreleased features of external libraries using lein or boot... I'll try make use of the |
Just tested locally, works like a charm with react v15.4.2 |
@chpill I just cut a release: As usual details can be found in the changelog. |
@martinklepsch Thanks a lot for the new release! I am in fact using I have ditched using react context because i found it too cumbersome... In the end I use derivatives in combinations with citrus, i pass my reconciler around and keep the derivatives-pool in it. I also made a mixin that registers and releases derivatives during |
That sounds cool, if you feel like sharing maybe that would be a nice
addition to the readme?
…On Wed 17. Jan 2018 at 09:49, chpill ***@***.***> wrote:
@martinklepsch <https://github.com/martinklepsch> Thanks a lot for the
new release! I am in fact using derivatives-pool directly, but I was
already using the latest version of the code (with the derivatives-pool
record), so it's all good 👍
I have ditched using react context because i found it too cumbersome... In
the end I use derivatives in combinations with citrus
<https://github.com/roman01la/citrus>, i pass my reconciler around and
keep the derivatives-pool in it.
I also made a mixin that registers and releases derivatives during :render,
a bit like the rum.core/reactive mixin, so that I don't have to declare
what derivatives I am going to use beforehand.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#18 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAF82HbQkU0dLlRy7Wr_77pTTg2G8s3pks5tLbQwgaJpZM4RfpXW>
.
|
Sure, should I open a new issue to start the discussion? |
Feel free to go straight to PR. I think the usage section could be split in the following ways:
If there are larger code blogs you could consider using |
I'll try to contribute something soon. I have to clean up the way I initialize the whole thing before I can show it to other people 😅 |
Using this library issues a warning regarding the fact that
PropTypes
will need to be accessed from a separate package starting with react16.The version of the cljsjs/prop-types library used is the one recommended in the rum readme