TanStackT
TanStack2y ago
2 replies
rubber-blue

purpose of <MatchRoute component

<MatchRoute
                    to="/dashboard/invoices/$invoiceId"
                    params={{
                      invoiceId: invoice.id,
                    }}
                    pending
                  >
                    {(match) => <Spinner show={!!match} wait="delay-50" />}
                  </MatchRoute>


https://tanstack.com/router/v1/docs/framework/react/examples/kitchen-sink-react-query-file-based

in dahsboard.invoices.tsx


what is the purpose of this component
image.png
An example showing how to implement Kitchen Sink React Query File Based in React Router
Was this page helpful?