router Questions

1

Solved

I'm using the Native Federation architecture to load a Micro Frontend into a Shell. The Micro Frontend contains an iFrame which loads a legacy AngularJS application. The AngularJS application uses ...
Ankledeep asked 29/8, 2024 at 8:54

3

Solved

I am developing a Nextjs app and would want to direct user to another link using router.push but I do not know how to open the link in new tab. My code is like this right now: import { useRouter } ...
Pipette asked 23/11, 2023 at 7:43

5

Solved

The app displays all photos <Photo> in a grid <PhotoGrid>, then once clicked, a function in <Photo> changes URL with history.push, and Router renders <Single> based on URL u...
Snick asked 6/3, 2021 at 14:44

10

Solved

NB. I've got a set of resulting from googling but, as I explain at the end, I sense that they aren't reliable, due to diversity. I have two utility methods - one for navigating to the parent node ...
Storeroom asked 1/1, 2020 at 12:9

4

I would like to create a service that subscribes to changes in Angular's paramMap. Unfortunately this doesn't seem to work. export class LocationResourcesService { constructor(private activatedRo...
Anion asked 16/12, 2020 at 17:59

4

With nextjs 12 (pages router) the router returned from 'next/router' had navigation events you could listen for and handle appropriately. Here is the documentation. One specific event is routeChang...
Yowl asked 13/10, 2023 at 14:23

11

(node:13176) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option. (Use node --trace-deprec...
Salto asked 24/12, 2021 at 5:2

4

I am using DjangoRestFramework 3.3.2 for Routing in my django application. I have 6 different folders for 6 apps and 1 main project app. I have include all 6 apps urls into main url file. Following...
Aubyn asked 16/3, 2017 at 9:18

3

Solved

I have started learning next.js in Next.js official documentation: next.js official document The document mentions two router features; App Router and Pages Router. I understand that the App ...
Bottoms asked 28/6, 2023 at 5:12

2

I'm new with Vue 3 router things, so really need help with it. I'm trying to pass prop through the router link. So, I have a component Post, where a prop post is an Object. Post.vue export default ...
Syndrome asked 31/3, 2021 at 15:55

7

Solved

So basically I have a server component in app dir and I want to get the pathname. I tried to do it using window.location but it does not work. Is there any way I can do this?
Equuleus asked 6/2, 2023 at 14:29

2

I cannot seem to pass the params using Programmatic navigation, the path changes but there is an empty object params. main.js import Vue from 'vue'; import VueRouter from 'vue-router'; import ...
Melda asked 24/4, 2018 at 9:20

5

Solved

Getting this error... EDIT routes.js to reflect changes ERROR in ./app/config/routes.js Module not found: Error: Cannot resolve module 'react-rounter' in /Users/sam/Desktop/battle/app/config ...
Kloster asked 21/11, 2016 at 22:49

4

I have a vue project deployed with Azure Static Web App. project contain router (history mode) functionality. It works perfect on local. But after deploying to Azure path links not working correctl...
Marcellemarcellina asked 19/4, 2021 at 18:45

5

Solved

I have referred the following link to get the answers, but I couldn't find any working solution for my scenario. Error: (SystemJS) Can't resolve all parameters for ActivatedRoute: (?, ?, ?, ?,...
Coating asked 3/1, 2018 at 12:46

19

Solved

Using suggested method: This is the result: A link in the button, Code in between comment lines I was wondering if there is a way to wrap a Link element from 'react-router' in an HTML button tag u...
Swam asked 26/2, 2017 at 0:17

2

How can I change the name of some parameters in url? Like this //, but by default name of parameter is "pk" I make request to "api/product/1/rate/1/" and get {'product_pk': '1', 'pk': '1'}. I want...
Barrows asked 27/11, 2019 at 14:13

0

here is the scenario, Im using StatefulShellRoute to preserve the state of each tab in my app, and when user sign in, or change language of the app, i need to refresh my StatefulShellRoute to load ...
Pendley asked 29/7, 2023 at 21:41

6

I am new to react, and I am trying to build a chat-app with it. I used react-router to load different components according to the url. In my react project foler (client/src/index.js), the code is a...
Stockpile asked 8/7, 2018 at 0:10

5

I'm making an app with some protected pages inside This pages are accessible only for registered users. Some times i should check session for timeout or after change browser tab. If user already ex...
Pieplant asked 8/2, 2017 at 14:19

5

when i navigate from /home to /dashboard,router is working fine but when i navigate from /home to /profile:id, router navigates me to that profile page which is also working fine,but when i refresh...
Refrigerate asked 9/3, 2018 at 8:52

4

Basically I have a notification component that show notification on click of icon in header. When we click the icon on header, it opens a popup and shows a list of notification. On clicking any one...
Herculean asked 16/4, 2019 at 11:35

3

Solved

Was working in react and then encountered a problem like Uncaught URIError: This is likely caused by an invalid percent-encoding Im working with news API at the moment and some of the articles...
Jackelynjackeroo asked 15/9, 2018 at 9:11

5

when i add a new route to router.dart and run the build runner i get the Route must have either a page or a redirect destination Error below is my code in router.drat : @MaterialAutoRouter( repl...
Hylotheism asked 26/10, 2021 at 8:52

3

Solved

This question is about sending and receiving multicasts inside the same host, while simultaneously sending it to other hosts. Even after hours of googling, I have not been able to sort out, how mu...
Counterpane asked 14/10, 2015 at 9:12

© 2022 - 2025 — McMap. All rights reserved.