-
Notifications
You must be signed in to change notification settings - Fork 260
Description
Is your feature request related to a problem? Please describe.
I would like to have a JS function (util?) or a gloval variable that lets me know if we are in edit mode. Sometimes we do things differently in edit mode. For instance, maybe a login form needs to auto redirect if already logged in. This is hard to edit/debug if it is always redirecting. I would like to do something like (if (!editMode) redirectToNewURL
Describe the solution you'd like
Either a function in utils or a global variable
Describe alternatives you've considered
Parse the URL. This is hacky and is impossible to make a global JS function to do this as the url object is not available at the global level.
Additional context
Add any other context or screenshots about the feature request here.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status