Should plugin-instructions' on_page_change be triggered once upon trial start? #3350
Shaobin-Jiang
started this conversation in
General
Replies: 1 comment
-
That sounds good to me! 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say we want the back nav button to be hidden on the page. We would have to do something like this:
This is no good, having to call
page_change
twice. If we allowon_page_change
to run once upon trial start, the problem should be solved.Of course, there might be occasions when users do not want this behavior. So I am proposing that we change
on_page_change
to a function that receives two arguments: the current page and the page from which it came. In this way, the user has a way of knowing whether the current run ofon_page_change
is triggered by trial start or really by a page change.Beta Was this translation helpful? Give feedback.
All reactions