Skip to main content
Version: 2.x

API Reference > @next-core/brick-types > UpdateAnchorFunction

UpdateAnchorFunction interface

设置指定的 anchor (URL hash)地址,此方法默认不会触发页面重新渲染。 往浏览器会话历史栈中推入一条新记录。

Signature:

export declare type UpdateAnchorFunction = (
hash: string,
state?: PluginHistoryState
) => void;