I received a user report saying that when you attach one card to another and navigate between them using those card links, the powerup I’ve developed doesn’t update its context - it still thinks it’s on the original card. As a result, all the data shown in the card back section comes from the previous card instead of the one you’ve just opened.
Am i doing something wrong? Or did i stumble upon a bug?
Reproducible code
const t = window.TrelloPowerUp.iframe({
appKey: getAppKey(),
appName: getAppName()
});
t.render(async () => {
const cardId = (await t.card('id')).id;
console.log('cardId:', cardId);
});
Steps to reproduce:
- Create card A
- Create card B
- Attach card B onto card A
- Clear the console
- Open card A
- Now, see console. Should print the card id of card A.
- Now, click the card B attachment on card A.
- Now, see console. Should still show the card A id and not card B.
I’ve also tried console logging the current context of the trello instance through getContext() but it also shows the wrong card when on card B.