Thank you for your response,

Exactly, in the end we would use the $instance or its value anyway (because both returns value, and you returned value because it would be used by other part of the programs), whether it is returned by tap or not. So we ended up creating a variable for it.

Can you give an example of how to use tap significantly so I can understand when to tap or why to tap?

Building Playtune (https://playtune.app) - Software engineer, writer, designer, and artist.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store