Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

loaderDeps should provide "params" atribute #195

Open
@mindaugasb-isense

Description

@mindaugasb-isense

Describe the Bug

We have a route:
a/:aId/b/:bId/c/:cId/x

We also have a loader for the x section:

loader: ({ params: { a } }) => fetchData({ a }) // It depends only on the "a" parameter.There should be a way to control data fetching using dependencies:
loaderDeps: ({ params: { a } }) => ({ a }),However, there is currently no built-in functionality to reload the loader only when the parent or current route changes, while preventing refetching when child routes change.

The shouldReload options (true / false / undefined) are not intuitive, so a mode-based approach could be more flexible.

Generouted Version

1.111.7

Your Example Website or App or Reproduction


Steps to Reproduce the Bug or Issue

It comes from the documentation:https://tanstack.com/router/v1/docs/framework/react/guide/data-loading

Expected Behavior

There suould be easy and understandable way to control you loaders.

Screenshots or Videos

No response

Platform

all

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp