Skip to content
This repository was archived by the owner on Jul 15, 2019. It is now read-only.

Use makePath/executeAction from React context

Choose a tag to compare

@lingyan lingyan released this 24 Jan 06:16
· 91 commits to master since this release

In the past, we have required user to pass context as a prop to the NavLink component and the component RouterMixin is applied. Now, NavLink and RouterMixin will first look in the React context (i.e. this.context) for these methods, and fall back to this.props.context if not found in this.context.

Code changes are in this PR: #63