Skip to content

fix: handle failed embed fetches and falsy cached() returns - #2774

Closed
Diawhiz wants to merge 4 commits into
docsifyjs:developfrom
Diawhiz:develop
Closed

fix: handle failed embed fetches and falsy cached() returns #2774
Diawhiz wants to merge 4 commits into
docsifyjs:developfrom
Diawhiz:develop

Conversation

@Diawhiz

@Diawhiz Diawhiz commented Aug 2, 2026

Copy link
Copy Markdown

Summary

Related issue, if any:

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

For any code change,

  • Related documentation has been updated, if needed
  • Related tests have been added or updated, if needed

Does this PR introduce a breaking change?

  • Yes
  • No

Tested in the following browsers:

  • Chrome
  • Firefox
  • Safari
  • Edge

Diawhiz and others added 3 commits June 5, 2026 13:01
- embed.js: add error handler to get().then() so a failed :include
  fetch calls next('') instead of silently stalling page rendering
- core/util/core.js: use  instead of  in
  cached() so functions that legitimately return falsy values ('' or 0)
  have their results stored and reused correctly
@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown

@Diawhiz is attempting to deploy a commit to the Docsify Team on Vercel.

A member of the Team first needs to authorize it.

@Diawhiz

Diawhiz commented Aug 2, 2026

Copy link
Copy Markdown
Author

none

@sy-records sy-records left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed via #2744

Thanks.

@sy-records sy-records closed this Aug 2, 2026
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

Successfully merging this pull request may close these issues.

2 participants