Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Content hook fires three or more times per page #885

Open
davestewart opened this issue Apr 13, 2023 · 1 comment
Open

[Bug] Content hook fires three or more times per page #885

davestewart opened this issue Apr 13, 2023 · 1 comment
Assignees

Comments

@davestewart
Copy link

davestewart commented Apr 13, 2023

Hello.

I added a nitro plugin to implement content:file:afterParse hook as documented:

However, the hook seems to fire multiple times (minimum 3, but I've seen 5) when you edit a document:

After Parse: content:1.guide:0.index.md
After Parse: content:1.guide:0.index.md
After Parse: content:1.guide:0.index.md

I also tested on the Pinia ORM docs and the result was the same.

The hook only fires once per edit on in a vanilla Content (vs Docus) project.

Bare-minimum repro here:

Copy link
Contributor

Tahul commented May 17, 2023

@farnabaz is this normal?

@Tahul Tahul changed the title Content hook fires three or more times per page [Bug] Content hook fires three or more times per page May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants