@@ -56,7 +56,7 @@ export default function () {
56
56
</head>
57
57
<body>
58
58
59
- <div id="app" data-page='{"component":"Event","props":{"event":{"id":80,"title":"Birthday party","start_date":"2019-06-02","description":"Come out and celebrate Jonathan's 36th birthday party!"}},"url":"/events/80","version":"c32b8e4965f418ad16eaebba1d4e960f"}'></div>
59
+ <div id="app" data-page='{"component":"Event","props":{"errors":{}," event":{"id":80,"title":"Birthday party","start_date":"2019-06-02","description":"Come out and celebrate Jonathan's 36th birthday party!"}},"url":"/events/80","version":"c32b8e4965f418ad16eaebba1d4e960f"}'></div>
60
60
61
61
</body>
62
62
</html>
@@ -111,6 +111,7 @@ export default function () {
111
111
{
112
112
"component": "Event",
113
113
"props": {
114
+ "errors": {},
114
115
"event": {
115
116
"id": 80,
116
117
"title": "Birthday party",
@@ -137,7 +138,8 @@ export default function () {
137
138
< Strong > component:</ Strong > The name of the JavaScript page component.
138
139
</ Li >
139
140
< Li >
140
- < Strong > props:</ Strong > The page props (data).
141
+ < Strong > props:</ Strong > The page props. Contains all of the page data along with an < Code > errors</ Code > object
142
+ (defaults to < Code > { } </ Code > if there are no errors).
141
143
</ Li >
142
144
< Li >
143
145
< Strong > url:</ Strong > The page URL.
@@ -278,7 +280,8 @@ export default function () {
278
280
"props": {
279
281
"auth": {...}, // NOT included
280
282
"categories": [...], // NOT included
281
- "events": [...] // included
283
+ "events": [...], // included
284
+ "errors": {} // always included
282
285
},
283
286
"url": "/events/80",
284
287
"version": "c32b8e4965f418ad16eaebba1d4e960f"
0 commit comments