Replies: 8 comments 2 replies
-
any update? i need this |
Beta Was this translation helpful? Give feedback.
-
any update? |
Beta Was this translation helpful? Give feedback.
-
window.history.go(delta) for example window.history.go(-3) goes back 3 times which is good window is used and wont give any error because you go back or forward in useEffect or Event callBacks. |
Beta Was this translation helpful? Give feedback.
-
Is there any chance it will be implemented ? It is useless to be able to go back only for 1 step. |
Beta Was this translation helpful? Give feedback.
-
facing an issue in trying to create an error page and go back more than 1 step by using router.back(), if you go only 1 back it makes an infinite loop between an error page and a 404 page. any plans to integrate this anytime soon? |
Beta Was this translation helpful? Give feedback.
-
I think this is work. // window.history.go(-2)
router.back()
router.back() |
Beta Was this translation helpful? Give feedback.
-
Any update? |
Beta Was this translation helpful? Give feedback.
-
just do it with javaScript, i could not find any way in next.js.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As I checked in github source code, unlike react-router,
next-router does not have multiple times of go back on Router.go() function.
But in some cases, such as routing back to previous page from error, it is needed to make code of multi times of go back.
So my idea is for doing it,
Router.go(times : number) => window.window.history.go(times);
How about my idea? Is there some feature I described above in NextJs?
Beta Was this translation helpful? Give feedback.
All reactions