UNPKG

@sendbird/uikit-chat-hooks

Version:

A set of React hooks for integrating Sendbird chat functionality into your React app.

16 lines (15 loc) 842 B
import { Logger } from '@sendbird/uikit-utils'; import { useGroupChannelListWithCollection } from './useGroupChannelListWithCollection'; import { useGroupChannelListWithQuery } from './useGroupChannelListWithQuery'; /** * @deprecated This hook is deprecated and will be replaced by the '@sendbird/uikit-tools' package. * */ export const useGroupChannelList = (sdk, userId, options) => { if (sdk.isCacheEnabled || options !== null && options !== void 0 && options.enableCollectionWithoutLocalCache) { if (options !== null && options !== void 0 && options.queryCreator) Logger.warn('`queryCreator` is ignored, please use `collectionCreator` instead.'); return useGroupChannelListWithCollection(sdk, userId, options); } else { return useGroupChannelListWithQuery(sdk, userId, options); } }; //# sourceMappingURL=index.js.map