Releases: donejs/done-ssr
Releases · donejs/done-ssr
Adds the xhrCache option
This adds xhrCache: false
as an option.
Specifies if the XHR cache should be inlined into the page. The XHR cache is used to prevent duplicate requests from occuring in the client when hydrating from server-rendering HTML. In some cases you might not use XHR in the client and therefore want to prevent the script from being included.
const ssr = require('done-ssr');
const render = ssr({}, {
xhrCache: false
});
Ensure can-globals is cleaned up at the end of the zone
v3.2.11 3.2.11
Adds missing dependency
can-view-nodelist
was a missing dependency. This adds it.
Unregister nodeLists set on Zone's data object
v3.2.8 3.2.8
3.2.5
3.2.4
3.2.0
This is a minor release that allows a function to be provided as the first
argument of ssr
, instead of a steal configuration. Doing this you do not use
steal, but rather the function executes.
const ssr = require("done-ssr");
const render = ssr(() => {
let el = document.createElement("div");
document.body.appendChild(el);
});
require("http").createServer(render);