invalidateDataStore() — astro Function Reference
Architecture documentation for the invalidateDataStore() function in vite-plugin-content-virtual-mod.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 3cd48fe4_109f_8e01_4a57_b017061f1e11["invalidateDataStore()"] 22d17eb4_64b9_b222_54e2_71c9cd084abb["vite-plugin-content-virtual-mod.ts"] 3cd48fe4_109f_8e01_4a57_b017061f1e11 -->|defined in| 22d17eb4_64b9_b222_54e2_71c9cd084abb 754289da_2be2_fdd7_44b9_fb417cc29838["astroContentVirtualModPlugin()"] 754289da_2be2_fdd7_44b9_fb417cc29838 -->|calls| 3cd48fe4_109f_8e01_4a57_b017061f1e11 style 3cd48fe4_109f_8e01_4a57_b017061f1e11 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/content/vite-plugin-content-virtual-mod.ts lines 34–44
function invalidateDataStore(viteServer: ViteDevServer) {
const environment = viteServer.environments[ASTRO_VITE_ENVIRONMENT_NAMES.ssr];
const module = environment.moduleGraph.getModuleById(RESOLVED_DATA_STORE_VIRTUAL_ID);
if (module) {
environment.moduleGraph.invalidateModule(module);
}
viteServer.environments.client.hot.send({
type: 'full-reload',
path: '*',
});
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does invalidateDataStore() do?
invalidateDataStore() is a function in the astro codebase, defined in packages/astro/src/content/vite-plugin-content-virtual-mod.ts.
Where is invalidateDataStore() defined?
invalidateDataStore() is defined in packages/astro/src/content/vite-plugin-content-virtual-mod.ts at line 34.
What calls invalidateDataStore()?
invalidateDataStore() is called by 1 function(s): astroContentVirtualModPlugin.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free