SolidJSS
SolidJS2y ago
14 replies
Ping for toast

Infinite context loop in start dev?

Hi, I have
const [MeProvider, useMe] = createContextProvider(() => {
  let [me, { mutate: setMe, refetch: refreshMe }] = createResource(async () => {
    // this runs forever
    console.log("running!")
    return (await client.user.me.get()).data;
  });
  return {
    me,
    setMe,
    refreshMe,
  };
});
, and I'm noticing that this createResource is running forever as fast as possible, on the server, when its in dev. I'm trying to discover the root cause of it, but it only happens in dev. I'm posting this half for help, and half to help others when I uncover the issue
Was this page helpful?