filmov
tv
TanStack Router: React Route/Location Masking

Показать описание
In React, you might want to show a shorter URL to the user, hiding some query params or parts of the URL entirely. Let's talk about route masking with TanStack Router 🎭
It's not a super common practice, but sometimes it helps. Here are a couple of examples:
1)You want to navigate to a page with some parameters already set. You can pass them into query params, but you don't need to show that to the end user in the browser's address bar. Mask them!
2) You open a modal that has its own route, but you want to hide that you're navigating. Mask that URL!
TanStack Router offers two separate APIs, one imperative and the other declarative. Let's see them in action 👇
_______________________________
Hit like and subscribe for more content! :D
You can also follow me on the other platforms:
_______________________________
TIMESTAMPS
00:00 Route Masking
00:24 Example 1: Hide query parameter
01:46 Imperative Approach
02:56 Keep mask on reload
04:24 Active Route with different query parameters
04:58 Declarative Approach
06:59 Example 2: Hide modal path
08:34 Unmask on page reload
09:30 Router Devtools
It's not a super common practice, but sometimes it helps. Here are a couple of examples:
1)You want to navigate to a page with some parameters already set. You can pass them into query params, but you don't need to show that to the end user in the browser's address bar. Mask them!
2) You open a modal that has its own route, but you want to hide that you're navigating. Mask that URL!
TanStack Router offers two separate APIs, one imperative and the other declarative. Let's see them in action 👇
_______________________________
Hit like and subscribe for more content! :D
You can also follow me on the other platforms:
_______________________________
TIMESTAMPS
00:00 Route Masking
00:24 Example 1: Hide query parameter
01:46 Imperative Approach
02:56 Keep mask on reload
04:24 Active Route with different query parameters
04:58 Declarative Approach
06:59 Example 2: Hide modal path
08:34 Unmask on page reload
09:30 Router Devtools
TanStack Router: React Route/Location Masking
TanStack Router: Authenticated Routes (Guards)
TanStack Start Protected Routes (Auth Guard)
React Router - Complete Tutorial
Adding Features to The Writing Platform (Tanstack Start)
Is this the future of React? PHP Dev Tries TanStack Start
React Typescript Role Based Access Control Tutorial | How to Manage User Roles and Permission
The 'Wrong Way' To Use React
Vite in 100 Seconds
React Authentication Crash Course With Firebase And Routing
How to redirect a user from base route to another route quickly in NextJS.
TanStack React Table v8 - Part 6 - Column Ordering, Column Hidding All and Individual
React's New Activity Component: Huge Performance Win!
The Right Way to do Auth with the Next.js App Router - UPDATED
How to make a quick and pretty PureScript web app
Working on Tanstack Course Platform (stripe, tanstack, drizzle, typescript)
4 ways to fetch fetch data from API in React (Bangla) | fetch axios swr and react-query
Ant Design Expandable Table Row | Table Row Expand/Collapse | Nested Table in ReactJS
Apprendre React Query - 07 - Comprendre la mise en cache
ReactJS Course [10] - React-Query Tutorial | How to Properly Fetch Data in React
React js Tutorial Beginners To Advance | Episode 10
Antd Dropdown Menu
TRPC Tutorial For Beginners- The End Of REST and GraphQL?
tim.js meetup 73: 5 shades of React error handling, by Horia Radu [english]
Комментарии