Closed
Description
I rewrote connect() and extracted a connectAdvanced() It now uses reselect to handle merging/caching of the state/props/dispatch. It also extracts out a connectAdvanced()
function that connect()
just delegates to.
I'm not quite ready to ready to submit a PR (still tweaking), but I'd like to suggest that this eventually become the new implementation.
It passes tests and linting, with the only breaking change to the existing API being related to the "advanced scenarios" for factories that require setting another options flag. (I haven't figured out how to detect the factory methods automatically... will give it another go, but it's been tricky given how radically different my approach is.) solved
Things I'm still need to do:
- support factorying map*ToProps functions without an explcit flag
- add more comments
- performance testing. the tests run slightly faster on my machine but we're talking insignificant amounts (250ms vs 230ms). do performance tests exist for this?
- reconcile with pending pull requests, as there would be zero chance of a successful merge. I've already covered the changes and new features in several of them, but some of the others will need reimplemented.
- keep tinkering. there's some functionality in
connect()
that I'd like to make reusable for someone who wants extend its functionality in userspace
Metadata
Metadata
Assignees
Labels
No labels