You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This hook gets triggered all the time with various different targets making every implementation that check this hook having a huge switch/case or if to cover the actions.
Available actions
reset
import
open
close
remove
add
also a lot of the actions have different targets
all
map
portal
folder
and some of the actions are only valid with one of the targets making the target pretty much obsolete.
My Suggestion would be ro replace this 1 hook with 6 seprate hooks so hook functions just need to run for their respective case and not for everything (eg most things that run on that hook probably don't care about open/close folders) also handling reset/import is a completly different thing from add/remove an entry in the bookmarks
The text was updated successfully, but these errors were encountered:
This hook gets triggered all the time with various different targets making every implementation that check this hook having a huge switch/case or if to cover the actions.
Available actions
also a lot of the actions have different targets
and some of the actions are only valid with one of the targets making the target pretty much obsolete.
reset/import => always all
open/close => always folder
add/remove => portal/map/folder
My Suggestion would be ro replace this 1 hook with 6 seprate hooks so hook functions just need to run for their respective case and not for everything (eg most things that run on that hook probably don't care about open/close folders) also handling reset/import is a completly different thing from add/remove an entry in the bookmarks
The text was updated successfully, but these errors were encountered: