Currently we are passing in a manual Secured.isLoggedIn(ctx()), Secured.getUserInfo(ctx()) on every Template load.
However, @marknelsonengineer has pointed out that there is a Singleton we can use called Secured.getUserInfo(Context.current()) to call this in any current class without passing in the context. Not sure if we'll be able to migrate to this or not, but we'll examine it as a future potential way to clean up the flow.
Currently we are passing in a manual
Secured.isLoggedIn(ctx()), Secured.getUserInfo(ctx())
on every Template load.However, @marknelsonengineer has pointed out that there is a Singleton we can use called
Secured.getUserInfo(Context.current())
to call this in any current class without passing in the context. Not sure if we'll be able to migrate to this or not, but we'll examine it as a future potential way to clean up the flow.