Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
calebporzio committed Oct 5, 2020
1 parent 73a790b commit ea9660b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/manifest.json
@@ -1 +1 @@
{"/livewire.js":"/livewire.js?id=d49d2eb95a76647bcd6b"}
{"/livewire.js":"/livewire.js?id=273e2852331ec0ca16bf"}
7 changes: 7 additions & 0 deletions src/Response.php
Expand Up @@ -97,6 +97,13 @@ public function toSubsequentResponse()
}
}

// Make sure any data marked as "dirty" is present in the resulting data payload.
foreach (data_get($this, 'effects.dirty', []) as $property) {
$property = head(explode('.', $property));

data_set($dirtyMemo, 'data.'.$property, $responseMemo['data'][$property]);
}

return [
'effects' => $this->effects,
'serverMemo' => $dirtyMemo,
Expand Down

0 comments on commit ea9660b

Please sign in to comment.