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
The Snackbars in the quiz creation are currently overly hacked together in part due to the known issues around how Coach's global router guards.
Currently, the Snackbar messages are being passed around by way of route.query.snackbar which is, to say the least, wack. This causes snackbar messages to show because clearing the value of the query param is a redundant route navigation.
Acceptance criteria
Update the Coach app.js so that it does not clear the snackbar whenever we're navigating to one of the routes listed in the skipLoading variable.
In each of the side panel files (SectionEditor, ReplaceQuestions, SelectResources) and the CreateQuizSection component, strip out the existing query-parameter related snackbar business.
Replace query-parameter solutions with direct calls to the createSnackbar action, typically will be during the beforeRouteLeave router guards.
When, for example, saving your replacements, you should see that the snackbar message shows as the side panel closes.
Additionally, you should never see a snackbar message when you're closing the side panel without saving your changes - ie, update the title in the SectionEditor, click the X, and confirm losing your changes... no snackbar.
The text was updated successfully, but these errors were encountered:
Overview
The Snackbars in the quiz creation are currently overly hacked together in part due to the known issues around how Coach's global router guards.
Currently, the Snackbar messages are being passed around by way of
route.query.snackbar
which is, to say the least, wack. This causes snackbar messages to show because clearing the value of the query param is a redundant route navigation.Acceptance criteria
app.js
so that it does not clear the snackbar whenever we're navigating to one of the routes listed in theskipLoading
variable.createSnackbar
action, typically will be during thebeforeRouteLeave
router guards.The text was updated successfully, but these errors were encountered: