TanStack / router

🤖 Fully typesafe Router for React (and friends) w/ built-in caching, 1st class search-param APIs, client-side cache integration and isomorphic rendering.
https://tanstack.com/router
MIT License
7.27k stars 495 forks source link

feat(react-router): add a `useLocation` hook to get the current `ParsedLocation` #1577

Closed MrPancakes39 closed 3 weeks ago

MrPancakes39 commented 3 weeks ago

The useLocation is a useful hook in React Router. So I decided to add it to the TanStack Router too.

SeanCassiere commented 3 weeks ago

Not sure if we are going to add this hook into the library or not, but this PR would need some changes should we decide to add it in.

nx-cloud[bot] commented 3 weeks ago

☁️ Nx Cloud Report

CI is running/has finished running commands for commit afca840aee212944269dd2d44a12d9a19a374687. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 2 targets - [`nx affected --targets=test:format,test:eslint,test:unit,test:build,build --parallel=3`](https://cloud.nx.app/runs/y3S0cGK9TQ?utm_source=pull-request&utm_medium=comment) - [`nx affected --target=test:types --exclude=examples/**`](https://cloud.nx.app/runs/5E6KZW8sno?utm_source=pull-request&utm_medium=comment)

Sent with 💌 from NxCloud.

SeanCassiere commented 3 weeks ago

Good to go.

MrPancakes39 commented 3 weeks ago

I apologize for not seeing the needed changes sooner and resolving them myself. Thank you @SeanCassiere for your consideration and work.