-
Notifications
You must be signed in to change notification settings - Fork 481
Conversation
}).then(html => reply(html)) | ||
.then(err => reply(boom.wrap(err))); | ||
} | ||
handler: (req: Request) => ngHapiEngine({req, bootstrap: ServerAppModule}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it have to instantiate the whole engine per request? feels like a bit of overhead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, at least for now, because the argument for ngHapiEngine
is RenderOptions
, which has a mandatory req
. And it's not instantiation. Remember: the engine is just a function wrapper around renderPlatformServer
. It still does all the caching because that's handled in a constant external to the wrapper.
Just needs a rebase |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes #993