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

prevent race condition that incorrectly redirects to the default tab som... #16

Conversation

johngwilkinson
Copy link

...etimes

Attempts to fix #15

This breaks the unit test it('should route to the first entry in tabConfiguration array by default'...) but the my app and the example app both appear to work correctly with the change. I'm not sure how to fix the test: it seems events fire differently in a regular browser?

@rpocklin
Copy link
Owner

Can you please take a look at the latest in tab-in-index-page branch - i've added an option for this use case which should keep the existing behaviour for other cases. Look at README.md for an explanation of auto-select-default-tab.

If you're happy with this it'll get into master and released.

@johngwilkinson
Copy link
Author

Looks good to me!

@rpocklin
Copy link
Owner

Ok i've changed my approach - i've removed the default route change code entirely. If people want to deep-link they can link directly to the tab-selected routes.

Landed with v1.4.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
2 participants