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

document passing Link isActive to children #725

Merged
merged 1 commit into from
Sep 12, 2023
Merged

document passing Link isActive to children #725

merged 1 commit into from
Sep 12, 2023

Conversation

bgentry
Copy link
Contributor

@bgentry bgentry commented Sep 11, 2023

While browsing the source code for the <Link> component, I stumbled upon the fact that you can propagate the isActive prop to children if you provide a function for children. This seemed useful enough to document because it turned out to be the exact problem I was trying to solve, and couldn't find an official way to do so other than making my own Link component.

@tannerlinsley tannerlinsley merged commit 22365f0 into TanStack:beta Sep 12, 2023
@bgentry bgentry deleted the document-passing-link-is-active-to-children branch September 12, 2023 01:36
FugiTech pushed a commit to FugiTech/router that referenced this pull request Sep 12, 2023
tannerlinsley pushed a commit that referenced this pull request Sep 12, 2023
* docs: fixed variable name error (#715)

used the wrong example in customStringifier example

* Fix(router-cli): Fixes on Windows and Improvements  (#717)

* (fix) Fixed backslash on windows
(fix) Sanitized routePaths, import and interface keys
(enhanched) made the parent search recursive
(question) how layouts need to be generated?

* (feat) Added WIP example for file routing

* (fix) add debug json in ignored

* (fix) Added return type to 'hasParentRoute'
(fix) Removed example, moved to another branch

---------

Co-authored-by: Koja sig. Dennis <DKOJA@ceia-spa.com>

* fix: types for useNavigate and useMatchRoute (#723)

* document passing Link isActive to children (#725)

---------

Co-authored-by: Frank Tran <ftransd@gmail.com>
Co-authored-by: Denny09310 <50493437+Denny09310@users.noreply.github.com>
Co-authored-by: Koja sig. Dennis <DKOJA@ceia-spa.com>
Co-authored-by: Blake Gentry <bgentry@users.noreply.github.com>
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