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

Accept query params in initialRoute property #409

Merged
merged 2 commits into from
Aug 17, 2023

Conversation

jwbaart
Copy link
Contributor

@jwbaart jwbaart commented Aug 17, 2023

The initalRoute property of the render() function will now accept query parameters. This way a component can be directly loaded in query parameters dependent state without a second navigation step.

The original navigate function is split into a external & internal function were the external function will also execute a detectChanges().

Copy link
Member

@timdeschryver timdeschryver left a comment

Choose a reason for hiding this comment

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

Thanks @jwbaart
PS: I like the emoji's in the commit messages 🤩!

@timdeschryver timdeschryver merged commit b92a959 into testing-library:main Aug 17, 2023
@jwbaart
Copy link
Contributor Author

jwbaart commented Aug 18, 2023

@timdeschryver thanks for merging!
The emoji's were done with git-cz, a tool based on conventional commits and brighten up the commits 😄

@timdeschryver
Copy link
Member

@all-contributors please add @jwbaart for code, tests

@allcontributors
Copy link
Contributor

@timdeschryver

I've put up a pull request to add @jwbaart! 🎉

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.

2 participants