How to refresh custom tab content when switching between two custom tabs in Gerrit?

22 views
Skip to first unread message

Zetakelor

unread,
Apr 29, 2025, 12:08:32 PM (12 days ago) Apr 29
to Repo and Gerrit Discussion

I'm developing a Gerrit plugin that registers multiple custom tabs using plugin.registerCustomComponent. When switching between two custom tabs (e.g. "Module Info" and "Branch Dashboard"), the content does not reload — the connectedCallback in the tab content component is not triggered again, and the DOM is not recreated.

How can I properly detect tab switches between custom tabs and trigger a refresh of the tab content?

Any advice on best practices for handling this scenario in the Gerrit plugin system would be greatly appreciated!

Reply all
Reply to author
Forward
0 new messages