nuxt-modules / nuxt-modules/ionic

fix: Empty `route.params` object on navigation

Open
#121 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
457
Forks
53
Avg merge
7h 32m
Merged PRs (30d)
21

Description

🐛 The bug

When navigating to a new page, the route.params object from useRoute is empty.

🛠️ To reproduce

https://stackblitz.com/edit/github-hz29vt?file=pages/tabs/tab1.vue

🌈 Expected behaviour

It should be an object with the current route parameters, query, etc.

ℹ️ Additional context
  • It works properly on 0.6.1.
  • After navigating, reloading the page makes the route.params object show the correct content.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the StackBlitz reproduction, especially pages/tabs/tab1.vue, and compare navigation behavior with the working 0.6.1 version. Verify that useRoute exposes the current route parameters and query immediately after navigation, without requiring a page reload.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
frontend, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.