Preview update hook causes infinite loop

This might be one for @Pau

I followed the advice from Is the Next.JS preview supposed to update automatically? - #8 by smithj

I'm trying to implement this on my homepage page (to prove a concept). In my getStaticProps, I return the following

    return {
      props: {
        doc,
        preview,
        activeRef: ref,
        globalSettings,
      },

And then I call this hook useUpdatePreviewRef(preview, activeRef, doc.id);

But unfortunately, this causes an infinite loop. Have you experienced this in the past? I'm looking at the github repo but things loop quite similar to mine.

I'm not sure what is useUpdateToolbarDocs(pageToolbarDocs(doc.uid, preview.activeRef, doc.lang), [doc]) used for, maybe this is related to the problem?

A post was merged into an existing topic: Is the Next.JS preview supposed to update automatically?