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

Not able to update resource context #37

Open
theKashey opened this issue Aug 7, 2020 · 1 comment
Open

Not able to update resource context #37

theKashey opened this issue Aug 7, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@theKashey
Copy link
Collaborator

As I understand resourceContext might be used to fed getKey/getData with extra props, not reflected in the query. However the updates to it are ignored, and context is never updated.

Ref: https://atlassian-labs.github.io/react-resource-router/#/router/configuration?id=resourcecontext

If context is not supposed to be used in that way - then what can I do to provide extra variables to my resources? For example language - it might be not a part of URL, but might the changed in runtime.

@albertogasparin albertogasparin added the bug Something isn't working label Aug 9, 2020
@albertogasparin
Copy link
Collaborator

Yes, I think this is probably a bug. We never hit that case as we need full page reload to change language or user. But should handle it properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants