import { useTowns } from '@towns-protocol/react-sdk'
function useTowns<T>( selector: (sync: SyncSelector) => Observable<T>, config?: ObservableConfig.FromData<T>, ): ObservableValue<T extends PersistedModel<infer UnwrappedData> ? UnwrappedData : T>
(sync: SyncSelector) => Observable<T>
ObservableConfig.FromData<T>
boolean
(error: Error) => void
(data: Data) => void
ObservableValue<T extends PersistedModel<infer UnwrappedData> ? UnwrappedData : T>
Was this page helpful?