Skip to content

discussions Search Results · repo:remix-run/react-router language:JavaScript

Filter by

877 results
 (82 ms)

877 results

inremix-run/react-router (press backspace or delete to remove)

Hi What is the recommended way to check if you can navigate(-1) in v6? Say I want to implement a custom back button and disable it when you can t go back.

Hi, I have the following code: React component - submits to a route using fetcher.submit: export default function AIAssistant() { const fetcher = useFetcher typeof submitAction (); const [isLoaded, ...

What is the new or updated feature that you are suggesting? update current route.path to allow more conditional regex paths for multiple conditions like in v5. v5 route: /(wines|whiskeys|sakes|beers)/:id/:productName? ...

Scenario: - user is on /a - user clicks a link to /b with state { foo: bar } - loader for /b redirects to /c Whatever state was passed with the link from /a to /b is lost and replaced with { _isRedirect: ...

Say I have the following routing setup: - / id - will throw a 404 if id is not a number - / id /redirect - will throw a redirect to / id /example - / id /example - a normal page If I go to /123/redirect, ...

Scenario - Given a case where a loader attempts to fetch data for a Route - And some validation check fails causing a redirect with additional information passed to the the init parameter (ResponseInit) ...

In a login page, I do user login and session operation in an action handler, and I check the login state in the loader of all other pages. While I finish the session and redirect to the user home, the ...

Lazy Route Discovery (Fog of War) - Supersedes https://github.com/remix-run/react-router/discussions/9855 - Related: - https://github.com/remix-run/remix/discussions/1989 Background Prior ...

Proposing a method to manage subscriptions, typically query subscriptions, on loaders. TL;DR: To effectively manage subscriptions on loaders, we need to determine: 1. Whether a loader or fetcher is ...