Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(router): add useCanGoForward #3196

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ferretwithaberet
Copy link
Contributor

No description provided.

Copy link

nx-cloud bot commented Jan 19, 2025

View your CI Pipeline Execution ↗ for commit 5f20739.

Command Status Duration Result
nx affected --targets=test:eslint,test:unit,tes... ✅ Succeeded 5m 1s View ↗
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 1m 2s View ↗

☁️ Nx Cloud last updated this comment at 2025-01-19 19:06:12 UTC

Copy link

pkg-pr-new bot commented Jan 19, 2025

Open in Stackblitz

More templates

@tanstack/create-router

npm i https://pkg.pr.new/@tanstack/create-router@3196

@tanstack/arktype-adapter

npm i https://pkg.pr.new/@tanstack/arktype-adapter@3196

@tanstack/directive-functions-plugin

npm i https://pkg.pr.new/@tanstack/directive-functions-plugin@3196

@tanstack/create-start

npm i https://pkg.pr.new/@tanstack/create-start@3196

@tanstack/eslint-plugin-router

npm i https://pkg.pr.new/@tanstack/eslint-plugin-router@3196

@tanstack/history

npm i https://pkg.pr.new/@tanstack/history@3196

@tanstack/react-cross-context

npm i https://pkg.pr.new/@tanstack/react-cross-context@3196

@tanstack/react-router

npm i https://pkg.pr.new/@tanstack/react-router@3196

@tanstack/react-router-with-query

npm i https://pkg.pr.new/@tanstack/react-router-with-query@3196

@tanstack/router-cli

npm i https://pkg.pr.new/@tanstack/router-cli@3196

@tanstack/router-devtools

npm i https://pkg.pr.new/@tanstack/router-devtools@3196

@tanstack/router-generator

npm i https://pkg.pr.new/@tanstack/router-generator@3196

@tanstack/router-plugin

npm i https://pkg.pr.new/@tanstack/router-plugin@3196

@tanstack/router-vite-plugin

npm i https://pkg.pr.new/@tanstack/router-vite-plugin@3196

@tanstack/server-functions-plugin

npm i https://pkg.pr.new/@tanstack/server-functions-plugin@3196

@tanstack/start

npm i https://pkg.pr.new/@tanstack/start@3196

@tanstack/start-plugin

npm i https://pkg.pr.new/@tanstack/start-plugin@3196

@tanstack/valibot-adapter

npm i https://pkg.pr.new/@tanstack/valibot-adapter@3196

@tanstack/virtual-file-routes

npm i https://pkg.pr.new/@tanstack/virtual-file-routes@3196

@tanstack/zod-adapter

npm i https://pkg.pr.new/@tanstack/zod-adapter@3196

commit: 5f20739

@matthiasschwarz
Copy link
Contributor

The length property of RouterHistory should return the total entries in the history. See History.length.
Since useCanGoForward needs the index of the current entry in the history there could be a new index property in RouterHistory used instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants