T
TanStack12mo ago
adverse-sapphire

Get all Search Objects

I have an object where I define properties for a custom MenuItem component that includes a Link wrapper. I have got my route types working where if I try to define a appMenuItem it will provide all of my route paths but I also want to do this for my search objects where I can optionally chose to pass search parameters from one page to another that will be used in the to property in the Link component. For example:
<Link
to={menuItem.route}
search={menuItem.search}
style={{ textDecoration: 'none' }}>
// other components

</Link>`
<Link
to={menuItem.route}
search={menuItem.search}
style={{ textDecoration: 'none' }}>
// other components

</Link>`
The provided image shows how I get all of route paths as options, I want to do the same for my search objects.
No description
1 Reply
equal-jade
equal-jade12mo ago
TanStack | High Quality Open-Source Software for Web Developers
Headless, type-safe, powerful utilities for complex workflows like Data Management, Data Visualization, Charts, Tables, and UI Components.
From An unknown user
From An unknown user

Did you find this page helpful?