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.
- robrechtmepostedon Apr 8, 2022
- 13
:
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, ...
- miguelisidoropostedyesterday
- 1
:
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? ...
- dbibbenspostedon Nov 6, 2021
- 42
:
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: ...
- rubber-duck-softwarepostedon Feb 14
- 8
:
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, ...
- stuartkeithpostedon Mar 20
- 6
:
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) ...
- svenvandescheurposted25 days ago
- 9
:
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 ...
- wfjswpostedyesterday
- 0
:
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 ...
- brophdawg11postedon Dec 13, 2023
- 18
:
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 ...
- melnikov-sposted2 days ago
- 2