You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fieldPath is always empty string on relay_field_payload.error #4970
I was playing around with the relayFieldLogger to customize the errors being thrown for certain events when I noticed that the fieldPath on the relay_field_payload.error event seems to always be an empty string.
This is the query I executed:
constdata=useLazyLoadQuery<AppQuery>(graphql` query AppQuery @throwOnFieldError { company { name } } `,{});
Hey @tobias-tengler, thanks for the feedback! This is a known problem. However, I believe it's been like this the whole time. So it's not a regression, but also it's not correct. I would also expect the path to be populated here.
This is something I intend to fix - unless it gets fixed by a contributor before I get to it.
Activity
itamark commentedon Apr 24, 2025
Hey @tobias-tengler, thanks for the feedback! This is a known problem. However, I believe it's been like this the whole time. So it's not a regression, but also it's not correct. I would also expect the path to be populated here.
This is something I intend to fix - unless it gets fixed by a contributor before I get to it.