Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] Spotlight being called while in background (#12957)
Currently there are many situations where `spotlight` can be called even if it's closed. This PR fixes it by adding the reactivity only to the template, so when it's destroyed, the reactivity is destroyed as well. There are still other times that it's called unnecessarily, like if you click on a result from a toolbar search it will be called again after you click. But this fix prevent many calls like when you search from someone it will call `spotlight` on background for every message you receive.
- Loading branch information