SolidJSS
SolidJSโ€ข16mo agoโ€ข
6 replies
chiefcll

createResource with a nested source signal doesn't retrigger

const [startTime, setStartTime] = createSignal(initialTime);
const [events, { refetch }] = createResource(
    () => ({
      service: channel,
      startTime: startTime(),
      duration: FOUR_HOUR_MILLISECONDS,
    }),
    epg.getEvents,
  );


My source signal is an arrow function which returns an object that calls a signal for a value. When I setStartTime the epg.getEvents function is not called. Why is my startTime not being tracked properly?
Was this page helpful?