optionURLReflectsImperativeAPIs property

bool optionURLReflectsImperativeAPIs
getter/setter pair

Whether the imperative API affects browser URL bar.

The Imperative APIs refer to push, pushReplacement, or replace.

If this option is set to true. The URL bar reflects the top-most GoRoute regardless the RouteBases underneath.

If this option is set to false. The URL bar reflects the RouteBases in the current state but ignores any RouteBases that are results of imperative API calls.

Defaults to false.

This option is for backward compatibility. It is strongly suggested against setting this value to true, as the URL of the top-most GoRoute is not always deeplink-able.

This option only affects web platform.

Implementation

static bool optionURLReflectsImperativeAPIs = false;