We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e7d216 commit d8a6b7dCopy full SHA for d8a6b7d
packages/view/src/view-response.ts
@@ -41,7 +41,12 @@ export class ViewResponse {
41
* Assigns the rendered HTML of the given `template` as the response payload.
42
*/
43
private async renderView (template: string, data?: any, viewBuilder?: ViewBuilderCallback): Promise<string> {
44
- const viewData = { ...this.response.state().all(), ...data }
+ const viewData = {
45
+ ...this.response.state().all(),
46
+ ...this.viewEngine.sharedData(),
47
+ ...data
48
+ }
49
+
50
const viewConfig: ViewResponseConfig = {}
51
52
if (typeof viewBuilder === 'function') {
0 commit comments