Skip to content

Commit 43c03f8

Browse files
committed
Adding a data-model system for sync'ing data between parent and child components
This also includes the dispatching of several new PHP events. Documenting hooks + minor items
1 parent 423f81f commit 43c03f8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Bridge/Mercure/Resources/assets/dist/turbo_stream_controller.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ class default_1 extends Controller {
55
initialize() {
66
const errorMessages = [];
77
if (!this.hasHubValue)
8-
errorMessages.push(`A "hub" value pointing to the Mercure hub must be provided.`);
8+
errorMessages.push('A "hub" value pointing to the Mercure hub must be provided.');
99
if (!this.hasTopicValue)
10-
errorMessages.push(`A "topic" value must be provided.`);
10+
errorMessages.push('A "topic" value must be provided.');
1111
if (errorMessages.length)
1212
throw new Error(errorMessages.join(' '));
1313
const u = new URL(this.hubValue);

Bridge/Mercure/Resources/assets/src/turbo_stream_controller.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export default class extends Controller {
2222

2323
initialize() {
2424
const errorMessages = [];
25-
if (!this.hasHubValue) errorMessages.push(`A "hub" value pointing to the Mercure hub must be provided.`);
26-
if (!this.hasTopicValue) errorMessages.push(`A "topic" value must be provided.`);
25+
if (!this.hasHubValue) errorMessages.push('A "hub" value pointing to the Mercure hub must be provided.');
26+
if (!this.hasTopicValue) errorMessages.push('A "topic" value must be provided.');
2727
if (errorMessages.length) throw new Error(errorMessages.join(' '));
2828

2929
const u = new URL(this.hubValue);

0 commit comments

Comments
 (0)