Chris Hand
1 min readOct 30, 2018

--

Hello Kimi,

I’m not entirely clear on what you’re asking. Do you want the page to throw an error or not?

In the original page, in your onDidDismiss method, you would simply check for the presence of data before accessing it.

modal.onDidDismiss((data) => {
if (data && data.hasOwnProperty('filter')) {
console.log(data.filter);
} else {
// throw error... if you want.
}
});

--

--

Chris Hand
Chris Hand

Written by Chris Hand

Helping teams take ownership of their product and empower themselves to do great things.

Responses (1)