For performance reasons, I decided to keep the :enrolled atom on show.ex to increase the speed with which the page reloads and displays this same field. This is because, in this way, in the reload() method, the activity doesn't need to reload as a whole, but only the enrolled variable.
For performance reasons, I decided to keep the
:enrolled
atom onshow.ex
to increase the speed with which the page reloads and displays this same field. This is because, in this way, in thereload()
method, the activity doesn't need to reload as a whole, but only the enrolled variable.