How to recall initialize methods?

I need to rerun the ‘board-buttons’ section of TrelloPowerUp.initialize to change the text on the button.

I can’t find a way to do it, is it possible?


Trello will re-call your initialize methods whenever changes occur on the board (cards moving lists, for example) or when pluginData changes (via a call t.set()).

I’d recommend calling t.set(key, value) on a random key value to trigger the recall. Make sure that the new value is different than it is currently as we try to be a bit smart and won’t update pluginData if the value is the same.