oats-center / grow

0 stars 3 forks source link

`gotoX` library #11

Open abalmos opened 3 years ago

abalmos commented 3 years ago

We need a context aware gotoX library that knows how to travel to a page from a data object and deal with the back button properly.

This will solve

Def

Maybe:

function gotoField(field: Field, popContext: bool) { ... }
function gotoVariety(variety: Variety, popContext: bool) { ... }

...

Where popContext is somehow given back to the screen making to the call to gotoX when returning due to the back button or back UI icon.