Hi there, does AppMetadata store data per board or is the data shared across different boards?
I ‘m not able to understand the documentation as it says that it is stored per board, but the data persist when making a copy of a board.
Hi there, does AppMetadata store data per board or is the data shared across different boards?
I ‘m not able to understand the documentation as it says that it is stored per board, but the data persist when making a copy of a board.
Best answer by Horea Porutiu
Hey
Thank you for asking! I just tested this out by taking the following steps:
1) Create an app
2) set some app metadata:
await miro.board.setAppData('hello', 'world')
const test = await miro.board.getAppData('hello');
console.log(test)
3) Open the board, open the app, and then open the JS Developer Console, in there I saw “world” printed out.
4) I then copied the board via copy board REST API method
5) Then I modified the code to only call getAppData.
6) Then I opened the board which was a copy of the original board, opened the app, and then the JS Developer Console, and saw that the AppData was not there. The docs are now updated to show that when duplicating a board, when using setAppData, the data will not persist.
Sorry for the confusion here.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.