-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Fix router wrapper around error boundary
Not sure why exactly this is or isn't working properly with the built in decorator, but I suspect it has something to do with the error boundary of react router itself/the decorator and the error state not being reset properly when the story remounts. The workaround just creates a new memory router instance on every render of the story, discarding any router state between every story render which seems to solve the problem.
- Loading branch information
1 parent
a32d636
commit 8dac57e
Showing
1 changed file
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters