developit / developit/preact-transition-group
Connect() with Unistore / Redux / etc
- Dominant language
- JavaScript
- Stars
- 54
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
Right now you can't use `connect('foo')(MyAnimatedComponent)` since the connect wrapper receives the animation events instead of the animated component.
I realize this may not be easily fixable, since it's a very domain specific problem (trying to mix `connect()` with transition group).
In my case I re-published unistore with a "magic variable" to identify unistore wrappers, and re-published preact-transition-group with a check for that magic variable to decide which comopnent should have the animation enter/leave functions called. This is obviously a pretty hack solution, but maybe there is another way around this worth discussing?
For reference, you can see my test here. It ends up being a really clean app with animation support, since `connect()` and transition groups in this version will play nicely together.
https://codesandbox.io/s/z22zn2946m
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.