You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On an automotive website, I'm displaying a car in a nested route, so I have the following setup:
occasion/$id.tsx // parent route, loading the car data
occasion/$id/index.tsx // index route, displaying the car data, this is where I want to export my schema
occasion/$id/quote.tsx // to ask for a quotation. I don't want the schema exported here
The current API don't allow me to do this.
A quick & dirty solution would be to provide all matches as a second parameters (useMatches()) to allow the user to get whatever data he needs. I'm sure you'll think of something better.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Scenario:
On an automotive website, I'm displaying a car in a nested route, so I have the following setup:
The current API don't allow me to do this.
A quick & dirty solution would be to provide all matches as a second parameters (
useMatches()
) to allow the user to get whatever data he needs. I'm sure you'll think of something better.Beta Was this translation helpful? Give feedback.
All reactions