Skip to content

Commit 7d922f9

Browse files
committed
Include Datastar 1.0.0-RC.5
1 parent bcb89c6 commit 7d922f9

File tree

10 files changed

+36
-37
lines changed

10 files changed

+36
-37
lines changed

src/assets/DatastarAssetBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class DatastarAssetBundle extends AssetBundle
99
{
10-
public const VERSION = '1.0.0-RC.4';
10+
public const VERSION = '1.0.0-RC.5';
1111

1212
/**
1313
* @inheritdoc

src/resources/lib/datastar/1.0.0-RC.4/datastar-aliased.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/resources/lib/datastar/1.0.0-RC.4/datastar-aliased.js.map

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/resources/lib/datastar/1.0.0-RC.4/datastar.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/resources/lib/datastar/1.0.0-RC.4/datastar.js.map

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/resources/lib/datastar/1.0.0-RC.5/datastar-aliased.js

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/resources/lib/datastar/1.0.0-RC.5/datastar-aliased.js.map.json

Lines changed: 7 additions & 0 deletions
Large diffs are not rendered by default.

src/resources/lib/datastar/1.0.0-RC.5/datastar.js

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/resources/lib/datastar/1.0.0-RC.5/datastar.js.map.json

Lines changed: 7 additions & 0 deletions
Large diffs are not rendered by default.

src/services/SseService.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,14 +226,13 @@ public function renderTemplate(string $template, array $variables = []): static
226226

227227
try {
228228
$output = Craft::$app->getView()->renderTemplate($template, $variables);
229+
if (!empty(trim($output))) {
230+
$this->patchElements($output);
231+
}
229232
} catch (Throwable $exception) {
230233
$this->throwException($exception);
231234
}
232235

233-
if (trim($output) !== '') {
234-
$this->patchElements($output);
235-
}
236-
237236
return $this;
238237
}
239238

0 commit comments

Comments
 (0)