Variable not available inside of iframe
My Vitepress local data loader is not available inside the
Do you know how I can fix this?
Unfortunately this seems like an edgecase with the current architecture. when extracting out the contents in the iframe declaration, any variables that are derived from the state of the component, e.g. the props or v-for, are not transferred over to the iframe.
It should be possible to fix this to support cases like this, but I'm currently not actively maintaining this at the moment.
Thanks for your answer! When hosting the iFrame on the same URL, I could possibly use something like localStorage to make the content accessible in the iFrame.