RepeatableEntry, state array data and suffix actions. How to get the repeatable state in the action.
I have this infolist, $this->conversation->history returns an array (stored as JSON in the DB) :
I need to have the current state of the repeater in the thumbsup/thumbsdown actions. I tried to inject the $state variable and it throws the messsage:
Injecting Get as you see in the example gives:
Someone has any idea of what should I do to get some state out of the repeatable. Actually getting just the INDEX of the array in the repeater loop would already make me pretty happy...
3 Replies
I'm running into the same issue. I have a feeling this is impossible.
i have same issue, have you found the solution?
I think you should use a closure as parameter for suffixAction. You can inject the state there.