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
in router.js.
The alternative would be to first test for existence or non-existence in a whitelist, eg as an array.
Then a case statement would be neater than if-elses.
Even more elegant than case would be designing the whitelist array keyed by route, including actions to take,
eg
in
router.js
.The alternative would be to first test for existence or non-existence in a whitelist, eg as an array.
Then a
case
statement would be neater than if-elses.Even more elegant than
case
would be designing the whitelist array keyed by route, including actions to take,eg
or
or, in your case, a combination of parts of the two with logic..
}
The text was updated successfully, but these errors were encountered: