Description
The below code always logs loading=true, however, the loading should become false when the initial data of this hook was received.
const currentSessionsDataChannel = pluginApi.useDataChannel<IndividualFeedbackSession>('running-sessions', DataChannelTypes.All_ITEMS);
useEffect( () => {
console.log("currentSessionsDataChannel.data.loading", currentSessionsDataChannel.data.loading);
}, [currentSessionsDataChannel.data.loading]);
Looking the websocket traffic, I can see that data already arrived on browser:
PS: discussing with @GuiLeme he mentioned that a refactor is needed in BBB createUseSubscription
function (see here), as it's not currently exposing the loading
attribute.
Metadata
Metadata
Assignees
Labels
No labels