You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to store the authenticated user in the context, in order for each method of the DataSource to directly access it, but I think it may be an antipattern. I'm not even sure async initialize() is allowed.
I would like to store the authenticated user in the context, in order for each method of the
DataSource
to directly access it, but I think it may be an antipattern. I'm not even sureasync initialize()
is allowed.This would allow the following (no need for user fetching):
Instead of fetching the user for every method:
What's the best way to achieve the desired behavior?
Are we constrained to fetch the user on every method?
The text was updated successfully, but these errors were encountered: