This unifies the preloadAsset function between client and server, and ensures it can be passed around to everything that needs it (network layer and router context). It keeps the current signature, so no news there. Just shuffles around where things are instantiated, and ensures the preloadAsset fn is reachable where it needs to be.
I was able to remove the asset preloader context entirely with this PR, given that we now pass the preloadAsset fn through the router context.
I'll re-enable emitting the route renderers in a separate PR after this is merged.
Side note: EntryServer.res doesn't seem to be formatted. Are you not doing autoformatting?
This unifies the
preloadAsset
function between client and server, and ensures it can be passed around to everything that needs it (network layer and router context). It keeps the current signature, so no news there. Just shuffles around where things are instantiated, and ensures the preloadAsset fn is reachable where it needs to be.I was able to remove the asset preloader context entirely with this PR, given that we now pass the preloadAsset fn through the router context.
I'll re-enable emitting the route renderers in a separate PR after this is merged.
Side note:
EntryServer.res
doesn't seem to be formatted. Are you not doing autoformatting?