refactor: reuse context

This commit is contained in:
cha0s 2021-04-20 03:00:07 -05:00
parent 953141093b
commit 59b902753e

View File

@ -42,7 +42,11 @@ export default (latus) => {
}
static createContext(locals = {}) {
if (locals.__populated) {
return locals;
}
return {
__populated: true,
...latus.get('%behaviorGlobals'),
...locals,
};