Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix switching log when redirecting without changing routes
When the log changes, but without a route change (like when you switch from one job to another job), we need to properly clean up and set up a new log. The best way I figured out is to do it in didUpdateAttrs hook, but only when the log actually changes. In such situation the old and the new log should be past to teardown and setup functions.
- Loading branch information
Showing
1 changed file
with
22 additions
and
13 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