-
Notifications
You must be signed in to change notification settings - Fork 109
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
Bookmark stars no longer show up in side panel #787
Comments
Culprit: |
The star will show up briefly, then disappear. Clicking the same portal a second time, it will show up. I noticed this comment in the bookmark code:
I suppose that is no longer true? Also, it appears that the Though, previously, it was fired four times during the initial page load! |
Regarding the initial page load: The call stack changed so much I can't figure out where it might be appropriate to add the new |
The select event now occurs once at step 1 following this piece of comment : // only run the hooks when we have a portalDetails object - most plugins rely on the extended data
// TODO? another hook to call always, for any plugins that can work with less data?
if (hasFullDetails) {
window.runHooks('portalDetailsUpdated', { guid: guid, portal: portal, portalDetails: details, portalData: data });
} it may be useful to introduce a dedicated hook for |
It seems like
While it seems like bookmarks has likely been abusing this particular hook, it might seem like this is Hryum's Law being invoked. I wouldn't be surprised that, when this was originally written, Hmm, I thought there was comment in the wiki somewhere about being careful about compatibility, but I can't find it quickly. |
The following seems sufficient. It works well because the handler only deals with global variables. Whether a good idea or not, I'll leave up to you all. :->
|
Just noticed this when I synced my personal fork to head.
The above image was captured with beta IITC core and released Bookmarks (though also happens with beta Bookmarks).
I'll start culprit finding.
The text was updated successfully, but these errors were encountered: