Skip to content

Commit 4c20faf

Browse files
ElielCMikitasK
andauthored
Update website/src/latest/api/runtime/script-manager.md
Co-authored-by: Mikita Kliushun <nikita.kliushun@gmail.com>
1 parent 864bb7b commit 4c20faf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

website/src/latest/api/runtime/script-manager.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ ScriptManager.shared.hooks.afterResolve(async (args) => {
281281
const { locator } = args;
282282
locator.shouldUpdateScript = async (scriptId, caller, isScriptCacheOutdated, cachedData) => {
283283
// Custom logic to determine if the script should be updated
284+
if (!cachedData) return true;
284285
return (
285286
cachedData.method !== locator.method ||
286287
cachedData.url !== locator.url ||

0 commit comments

Comments
 (0)