workloadClient.dialog.close() navigates to "/" #161
Closed
WilcoHendriksen
started this conversation in
General
Replies: 1 comment
-
No navigation is done automatically by the workloadClient. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
By default the workloadClient.dialog.close() navigates to "/" which seems a bit strange. The workload-sample-app doesn't have this route. If we put a console.log(route) in the "onNavigate" we can see its trying to navigate to "/". But if you defined it your router, it will navigate to that route. In newer versions of react-router this also gives an error if it does not exists. How should we handle this situation?
Beta Was this translation helpful? Give feedback.
All reactions