Issue with user menu items rendering with SPA

Hi, I have user menu action that is edit profile in AdminPanelProvider, nothing special i add form, fill it out and than save. And it works on inital page load, but after each next page visit component get's deleted I get these errors i js
store.js:37 Uncaught Component not found: CKS7A5I4FW4uyD82eoFR
store.js:37 Uncaught Component not found: CKS7A5I4FW4uyD82eoFR
store.js:37 Uncaught Component not found: CKS7A5I4FW4uyD82eoFR
store.js:37 Uncaught Component not found: CKS7A5I4FW4uyD82eoFR
->modalHeading(fn () => __('actions.edit_profile_for', [
'name' => Auth::user() instanceof User ? Auth::user()->full_name : '',
]))
->fillForm(fn () => Auth::user() instanceof User ? Auth::user()->toArray() : [])
->action(fn (array $data) => new EditProfileService()->handle($data))
->schema(fn () => UserResource::getFormSchema(includeRoles: false, newPasswordLabel: true)),
->modalHeading(fn () => __('actions.edit_profile_for', [
'name' => Auth::user() instanceof User ? Auth::user()->full_name : '',
]))
->fillForm(fn () => Auth::user() instanceof User ? Auth::user()->toArray() : [])
->action(fn (array $data) => new EditProfileService()->handle($data))
->schema(fn () => UserResource::getFormSchema(includeRoles: false, newPasswordLabel: true)),
Any idea how to fix tis?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?