With this PR, the value for optional path segments that have no match is an empty string. Matched path segments that are empty will still produce an empty string.
This is a major change, because it means any defaultProps for route components will be applied for empty/missing route parameters - currently they are not.
Currently, optional path segments that do not match a current URL produce same-named props with an empty string value:
With this PR, the value for optional path segments that have no match is an empty string. Matched path segments that are empty will still produce an empty string.
This is a major change, because it means any
defaultProps
for route components will be applied for empty/missing route parameters - currently they are not.Fixes #381.
ToDo