import { useObservable } from '@towns-protocol/react-sdk'
function useObservable<Model, Data>( observable: Observable<Model>, config?: ObservableConfig.FromData<Model>, ): ObservableValue<Data>
Observable<Model>
ObservableConfig.FromData<Model>
boolean
(error: Error) => void
(data: Data) => void
ObservableValue<Data>
Was this page helpful?