Skip to content

Commit

Permalink
also preload bootstrapModules
Browse files Browse the repository at this point in the history
  • Loading branch information
codehz committed Aug 17, 2024
1 parent 8721d05 commit 6fe3a25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ export class StaticRouters {
<MetaContext.Provider
value={{ hash: this.#hashed, dependencies: this.#dependencies }}
>
{bootstrapModules?.map((name, idx) => (
<PreloadModule key={idx} module={name} />
))}
<PreloadModule
module={this.#routes.get(serverSide.pathname)!.split("?")[0]}
/>
Expand Down

0 comments on commit 6fe3a25

Please sign in to comment.