You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use a function within the editLink pattern callable. This results in a ReferenceError:
A `ReferenceError`: getEditLinkPattern is not defined at eval (eval at deserializeFunctions (@siteData:1:228), <anonymous>:4:9)
Reproduction
functiongetEditLinkPattern(payload: PageData){return"https://github.com/vuejs/vitepress/edit/main/docs/:path";}exportdefault{themeConfig: {editLink: {pattern: (payload)=>{returngetEditLinkPattern(payload);},text: 'Edit this page on GitHub'}}}
Expected behavior
The callable in editLink.pattern should be able to reference other functions.
Describe the bug
I want to use a function within the editLink pattern callable. This results in a
ReferenceError
:Reproduction
Expected behavior
The callable in
editLink.pattern
should be able to reference other functions.System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: