The problem is - it seems that I can't reference $this->mData in ajax calls as it doesn't return any data to the partials.
I have lots of modal views to modify my data and I don't want to render all of them at once (at the beginning) as it slows down the site a lot. So I would like to render them only if I need them. Therefore I need to read some data (specific to the modal view) from the overall data - pass it to the view - modify it - send it back via ajax to the $this->mData
Is the data being set? can you dd() the values in both the ajax requests?
How are you rendering the modal? You can return a rendered partial and pass it variables in an array as push
I set the data in the public function onRun(){} method. When I dd() there - the data is set.
Apparently I cannot dd() in the ajax functions, right? Nothing happens when I try to do that.
I'm able to render partials and also pass data to them like explained in that link. But the problem still is that I cannot get any data from the variable stored in $this->mData in die Component class