Cached resource runs into an error when using an action

I'm running into this error which I've isolated to a component that uses this cached function
const getAgentsAction = cache(async () => {
  try {
    const agents = await listAgents();
    return agents;
  } catch (error) {
    throw error;
  }
}, "agents");


Whenever I run this action, I get the error in the screenshot
const createEntityAction = action(async (data: any) => {
    console.log({ data });
    try {  
      const agent = await addAgent(data);    
    } catch (error) {
      throw error;
    }
  });

const createEntity = useAction(createEntityAction);
start-screenshot.png
Was this page helpful?