attach store to error pages

This commit is contained in:
Rich-Harris
2018-03-20 16:08:23 -04:00
parent d5d25f1d30
commit 3220c522d7

View File

@@ -356,6 +356,8 @@ function get_route_handler(chunks: Record<string, string>, routes: RouteObject[]
const rendered = route ? route.module.render({
status: statusCode,
error
}, {
store: store_getter && store_getter(req)
}) : { head: '', css: null, html: title };
const { head, css, html } = rendered;