类型 ReloadConfig

API 文档由 Go 源码生成,内容为英文。

type ReloadConfig struct {
	Snapshot func() ([]StateSlot, error)
	Restore  func([]StateSlot) error
}

ReloadConfig explicitly snapshots application-owned state across a development worker replacement. The runtime preserves window, focus, pointer, and scroll state independently.