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

Include location state in LOCATION_CHANGE payload #302

Merged
merged 2 commits into from
Jan 29, 2020

Conversation

fzaninotto
Copy link
Contributor

  • Add code
  • Add test
  • Run all tests to check for regression

Closes #301

fzaninotto added a commit to marmelab/react-admin that referenced this pull request Apr 30, 2019
Temporary workaround until supasate/connected-react-router#302 is merged and published
@fzaninotto
Copy link
Contributor Author

Is there anything I can do to help this PR to be merged?

@fzaninotto
Copy link
Contributor Author

bump, can you please merge this PR?

@rob2d
Copy link

rob2d commented Dec 5, 2019

would also like the sanity introduced with this feature 🙏 at the moment you need to hard code your param matching or find an extremely over-engineered/coupled way to do that with view.

@akshah123
Copy link

@supasate any chance this can be merged in?

</ConnectedRouter>
</Provider>
)
props.history.push({ pathname: '/new-location', state: { foo: 'bar' } })
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you test key as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed location.key from the perimeter of this PR, as it seems to be a private API of the history package.

@supasate
Copy link
Owner

Hi @fzaninotto, sorry for keeping this long. I somehow thought it was a stale PR and forgot to re-check.

LGTM with some nits for the unit test. Please rebase as well.

@fzaninotto fzaninotto changed the title Include location state and key in LOCATION_CHANGE payload Include location state in LOCATION_CHANGE payload Jan 27, 2020
@fzaninotto
Copy link
Contributor Author

Rebased

@supasate
Copy link
Owner

LGTM. Thanks for your contribution!

@supasate supasate merged commit 08e2440 into supasate:master Jan 29, 2020
@fzaninotto
Copy link
Contributor Author

Awesome! Any ETA on the release of this fix?

@akshah123
Copy link

@supasate would it be possible release this fix soon?

supasate added a commit that referenced this pull request Feb 9, 2020
* 'master' of github.com:supasate/connected-react-router:
  Bump handlebars from 4.1.2 to 4.5.3 (#385)
  Bump handlebars from 4.2.0 to 4.5.3 in /examples/react-native (#386)
  Move immutable and seamless-immutable to peer dependencies (#390)
  Include location state in LOCATION_CHANGE payload (#302)
  Implement: Windows development capability (#378)
@supasate
Copy link
Owner

supasate commented Feb 9, 2020

Released in 6.7.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Location state absent in LOCATION_CHANGE action
4 participants