Refreshing ParentResource Infolist when adding records in RelationManager table
What I want to do
When I add a new record on a table that is added via relation manager. I want the parent resource data to update and reflect the new changes.
I have a PhoneMembership->balance() calculcator on the infolist, that i would like to get updated without manually refreshing the page each time.
Right now, after a new record is added to the table. I would need to manually refresh the page for the new balance to show up.
First I tried doing this approach that I found here
https://discord.com/channels/883083792112300104/1209193801386827776
Next I tried to do
https://discord.com/channels/883083792112300104/1103674797537366167
On the
ViewPhoneMembership
I added
I get this error for BadMethodCallException3 Replies
If it helps with the context
- add quick payment which adds a new transaction
- emit some event to update accout balance in the top left panel, which is from the PhoneMembershipResource infolist
Any help or insight on where I could find the answer is much appreciated π
Solution
$this->dispatch('updatePhoneMembershipTable');
lol instead emit