-
Notifications
You must be signed in to change notification settings - Fork 457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Observer on the side panel? #636
Comments
Agreed.
Not currently.
It's probably more efficient to use Mutation Observers for this, like we do for other DOM-based events. If you can make that work, feel free to integrate it into the base library as a DOM-observer, and issue a PR 😃 |
@josteink Actually I'd be more than happy if I have that working! Apart from reading the code, do you have any doc/video, etc explaining how does the library work and manages the state? A couple of questions to understand how the library works:
|
I see that we actually do more than use MutationObservers. We also use a Lines 2462 to 2484 in f5314db
|
Hey team!
First, congrats for making this library, it's rock solid and super helpful!
I'm building an extension that adds a custom panel to the sidebar. I got that working by checking every X milliseconds if the sidebar exists, and if so, inject my custom panel. But I wanted to improve that since it's quite inefficient to run those checks (especially at the first load).
Is there any way to accomplish that with your library? If not, are there any ideas/insights on how to do it?
The text was updated successfully, but these errors were encountered: