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
Often I want to apply some auth or billing style checks in the mount() but this doesn't appear to work:
class TestView(UnicornView):
def mount(self):
return redirect("/")
My current hacky workaround is to define a load() method that gets called by unicorn:visible - basically redirecting anytime after the page is loaded is working as expected..
The text was updated successfully, but these errors were encountered:
Often I want to apply some auth or billing style checks in the mount() but this doesn't appear to work:
My current hacky workaround is to define a load() method that gets called by unicorn:visible - basically redirecting anytime after the page is loaded is working as expected..
The text was updated successfully, but these errors were encountered: