Skip to content
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

Add optional params encoders, params decoders and default params to routes #244

Merged
merged 5 commits into from
Jan 25, 2018

Conversation

troch
Copy link
Member

@troch troch commented Jan 24, 2018

Routes can now be configured with:

  • encodeParams: a function taking state params and returning path params
  • decodeParams: a function taking path params and returning state params
  • defaultParams: default state params when navigating

@troch troch added the feature label Jan 24, 2018
@troch troch force-pushed the feature/params-decode-encode branch from f6591fb to d10af76 Compare January 24, 2018 22:10
@troch troch merged commit cfc004b into master Jan 25, 2018
@troch troch deleted the feature/params-decode-encode branch January 25, 2018 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant