Skip to content
This repository has been archived by the owner on Sep 13, 2020. It is now read-only.

`menuActions` refactoring

Compare
Choose a tag to compare
@Kureev Kureev released this 17 Sep 11:29
· 182 commits to master since this release

Last few days I received a lot of issues from users about accessing menuActions from child content view components. I admit, that previous solution had a bunch of edge cases I was supposed to fix and now I'm glad to present you a result of my work trying solving these issues.

Now you're able to use context (I think it's already well-known feature of React, even besides it's not documented yet), so instead of using props' menuActions property on the first-level component you're able to use context's menuActions property which is available across the all child views. Example is already there, you can check a README for it.

Related issues:
#101
#99
#96

Hope that will hope you to build even more awesome software!