lynx: reload() static method

Reloads the current page, like the Refresh button.

Syntax

reload(value: object, callback: () => void): void;

Parameters

value

The new initial data the page reloading uses.

callback

The callback function when page reloading finishes.

Return Value

None(undefined).

Notices

  1. The lynx.reload() method will not trigger the frontend DataProcessor function;
  2. __globalProps, SystemInfo and JS global variables will remain unchanged;
  3. lynx.reload() will trigger the componentWillUnmount/onDetach callbacks of all current frontend components; and recreate new custom components.

Compatibility

LCD tables only load in the browser

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.