Skip to content

Commit

Permalink
🐛 Actually update the hawkejs.scene.exposed values after receiving …
Browse files Browse the repository at this point in the history
…new data from the server
  • Loading branch information
skerit committed Jan 29, 2024
1 parent bbc02f1 commit 4049c13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* Trigger `HePlaceholder` render when made & inserted in the DOM manually
* Improve printed error messages during rendering
* Actually update the `hawkejs.scene.exposed` values after receiving new data from the server

## 2.3.15 (2023-11-27)

Expand Down
7 changes: 6 additions & 1 deletion lib/core/hawkejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,7 @@ Main.setMethod(function _gotCompiled(err, result, callback) {
*
* @author Jelle De Loecker <[email protected]>
* @since 2.0.0
* @version 2.3.7
* @version 2.3.16
*
* @param {String|Renderer|Function} template
* @param {Object} variables
Expand Down Expand Up @@ -1224,6 +1224,11 @@ Main.setMethod(function prepareRenderArguments(template, variables, callback) {
renderer.variables = variables;
}

// Update the exposed variables in the browser now
if (Blast.isBrowser && typeof hawkejs != 'undefined') {
Object.assign(hawkejs.scene.exposed, renderer.expose_to_scene);
}

return {
renderer : renderer,
template : template,
Expand Down

0 comments on commit 4049c13

Please sign in to comment.