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

How does redial handle redirects triggered with a decorated component? #50

Open
Aryk opened this issue Apr 16, 2017 · 0 comments
Open

Comments

@Aryk
Copy link

Aryk commented Apr 16, 2017

@markdalgleish - Is it possible to use redial when the top level components are decorated with for example an authentication check?

It seems like if a route gets matched, redial is designed to trigger and run the callbacks even if the authenticated check will fail and the user would get redirected somewhere else. Is that right?

I suppose this is what issues #38 and #47 are pertaining to.

If you were able to decorate the components further down, then perhaps they would only get their fetches triggered when those components were indeed rendered.

Is that right or am I missing something? That would make it very difficult to use this library if you were hiding/showing components further down that depended on different data that needed fetching.

@Aryk Aryk changed the title Using redial when Route components are decorated? Using redial Route components decorated (ie with an Auth check)? Apr 16, 2017
@Aryk Aryk changed the title Using redial Route components decorated (ie with an Auth check)? How does redial handle redirects triggered with a decorated component? Apr 16, 2017
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

No branches or pull requests

1 participant