@selfcommunity/react-ui 0.9.0-alpha.8 → 0.9.0-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -108,7 +108,7 @@ function Event(inProps) {
108
108
  });
109
109
  const { id = `event_object_${props.eventId ? props.eventId : props.event ? props.event.id : ''}`, eventId = null, event = null, className = null, template = event_1.SCEventTemplateType.SNIPPET, hideInProgress = false, hideEventParticipants = false, hideEventPlanner = false, actions, EventParticipantsButtonComponentProps = {}, EventSkeletonComponentProps = {} } = props, rest = tslib_1.__rest(props, ["id", "eventId", "event", "className", "template", "hideInProgress", "hideEventParticipants", "hideEventPlanner", "actions", "EventParticipantsButtonComponentProps", "EventSkeletonComponentProps"]);
110
110
  // STATE
111
- const { scEvent } = (0, react_core_1.useSCFetchEvent)({ id: eventId, event });
111
+ const { scEvent } = (0, react_core_1.useSCFetchEvent)({ id: eventId, event, autoSubscribe: false });
112
112
  const inProgress = (0, react_1.useMemo)(() => scEvent && scEvent.active && scEvent.running, [scEvent]);
113
113
  // CONTEXT
114
114
  const scRoutingContext = (0, react_core_1.useSCRouting)();
@@ -106,7 +106,7 @@ export default function Event(inProps) {
106
106
  });
107
107
  const { id = `event_object_${props.eventId ? props.eventId : props.event ? props.event.id : ''}`, eventId = null, event = null, className = null, template = SCEventTemplateType.SNIPPET, hideInProgress = false, hideEventParticipants = false, hideEventPlanner = false, actions, EventParticipantsButtonComponentProps = {}, EventSkeletonComponentProps = {} } = props, rest = __rest(props, ["id", "eventId", "event", "className", "template", "hideInProgress", "hideEventParticipants", "hideEventPlanner", "actions", "EventParticipantsButtonComponentProps", "EventSkeletonComponentProps"]);
108
108
  // STATE
109
- const { scEvent } = useSCFetchEvent({ id: eventId, event });
109
+ const { scEvent } = useSCFetchEvent({ id: eventId, event, autoSubscribe: false });
110
110
  const inProgress = useMemo(() => scEvent && scEvent.active && scEvent.running, [scEvent]);
111
111
  // CONTEXT
112
112
  const scRoutingContext = useSCRouting();