TanStackT
TanStack6mo ago
1 reply
sacred-rose

What is params={true} in a Link component?

This property is used in the Kitchen Sink examples in the docs, but I can't find documentation on params as a boolean.

React.useEffect(() => {
    navigate({
      search: (old) => ({
        ...old,
        notes: notes ? notes : undefined,
      }),
      replace: true,
      params: true,
    })
  }, [notes])

  <Link
    from={Route.fullPath}
    params={true}
    search={(old) => ({
      ...old,
      showNotes: old.showNotes ? undefined : true,
    })}
    className="text-blue-700"
  >
An example showing how to implement Kitchen Sink React Query File Based in React using TanStack Router.
React TanStack Router Kitchen Sink React Query File Based Example |...
Was this page helpful?