Tutorial: TabStack.exists

TabStack.exists

Checks if the TabStack exists

Check if a TabStack exists

if (!fin.me.isView) {
    throw new Error('Not running in a platform View.');
}

const stack = await fin.me.getCurrentStack();
const exists = await stack.exists();
// The TabStack exists: true
console.log(`The TabStack exists: ${exists}`);