The following markup works on v1.0.7 but not on v.1.0.12.
I am using $set
in parent component to update the value of $current_step
. The markup works on initial load but when updating the value of $current_step
it throws an error. See below.
Parent is loaded using:
Route::livewire('/projects/{project}/edit', 'form')->name('project.edit');
form.blade.php:
@if ($current_step === 'step-1')
<livewire:step1 :project="$project" :key="'step1'">
@endif
@if ($current_step === 'step-2')
<livewire:step2 :project="$project" :key="'step2'">
@endif
Javascript console error:
index.js:20 Uncaught (in promise) TypeError: Cannot read property 'data' of null
at new Component (index.js:20)
at onNodeAdded (index.js:333)
at callHook (morphdom.js:35)
at handleNodeAdded (morphdom.js:140)
at handleNodeAdded (morphdom.js:164)
at handleNodeAdded (morphdom.js:164)
at handleNodeAdded (morphdom.js:164)
at morphdom.js:407
at morphEl (morphdom.js:219)
at morphdom.js:463
Component @ index.js:20
onNodeAdded @ index.js:333
callHook @ morphdom.js:35
handleNodeAdded @ morphdom.js:140
handleNodeAdded @ morphdom.js:164
handleNodeAdded @ morphdom.js:164
handleNodeAdded @ morphdom.js:164
(anonymous) @ morphdom.js:407
morphEl @ morphdom.js:219
(anonymous) @ morphdom.js:463
value @ index.js:248
value @ index.js:221
value @ index.js:167
value @ index.js:143
value @ index.js:23
Connection.driver.onMessage @ index.js:9
(anonymous) @ http.js:30
Promise.then (async)
(anonymous) @ http.js:25
Promise.then (async)
sendMessage @ http.js:23
value @ index.js:34
value @ index.js:127
later @ debounce.js:50
setTimeout (async)
(anonymous) @ debounce.js:54
value @ index.js:113
(anonymous) @ node_initializer.js:169
value @ index.js:390
handler @ node_initializer.js:131
All nested components have one root div. I am struggling to troubleshoot this so any input would be valuable.