Here:
…it states that params can be optionally added:
navigate.clear(path, param1, param2, ...)
— clear and navigate to the specified view path, passing params
.
Without params, I am able to trigger the ‘init()’ function of the path I’m navigating to, using navigate.clear(‘my_path’)
However, when I add any params e.g. navigate.clear(‘my_path’, true), I get the message: “Error on action: Error: Expected 0 arguments (), got 1”
How do I pass params in according to the docs?