brutalism icon indicating copy to clipboard operation
brutalism copied to clipboard

Tabs do not obey browser forward/back

Open Inventsable opened this issue 4 years ago • 0 comments

Leaving this here so I don't forget to fix it. To recreate, open the API and click on a few tabs. Notice that when you press browser forward/back, the routes obey this and you navigate between routes but the active Tab never changes.

Should fix with a watch prop on the current route and some regex detection -- shouldn't rely on path alone in case complex route parameters or nested routes are being used.

Inventsable avatar Apr 26 '20 06:04 Inventsable