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
Thanks for building this plugin! My users suffer from intermittent issues loading the async chunks so this will provide some relief.
I just set the lastResetScript to the following.
lastResortScript: `(${(function(chunkId: string){alert('Sorry, we couldn\'t load required script \''+chunkId+'\'. Please contact support if the issue persists');}).toString()})(chunkId);`,
But it seems only chunkId is available in the context. Some of my chunks are actually not critical if they fail, in such case I would like to provide an alternative message:
lastResortScript: `(${(function(chunkId: string,chunkName: string){if(chunkName.startsWith('opt-')){// provide some softer error than alert}elsealert('Sorry, we couldn\'t load required script \''+chunkId+'\'. Please contact support if the issue persists');}}).toString()})(chunkId, chunkName);`,
Thanks again!
The text was updated successfully, but these errors were encountered:
Thanks for building this plugin! My users suffer from intermittent issues loading the async chunks so this will provide some relief.
I just set the
lastResetScript
to the following.But it seems only
chunkId
is available in the context. Some of my chunks are actually not critical if they fail, in such case I would like to provide an alternative message:Thanks again!
The text was updated successfully, but these errors were encountered: