@robojs/syncuseSyncStateOn this pageFunction: useSyncState() function useSyncState<T>(initialState, key): readonly [any, (newState) => void] Type Parameters Type ParameterT Parameters ParameterTypeinitialStateTkey(null | string)[] Returns readonly [any, (newState) => void]