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
[JSON:API] Some custom fetch settings are overridden by defaults #941
I have several cases that I need to call custom endpoints to act on records. These endpoints doesn't comply fully with JSON:API, but I'd like Orbit to call them since they return proper formatted JSON:API responses that I would like Orbit to process (add to cache, etc).
(Just an example, purify-air can change a lot of other things based on different planet conditions, so can't simply say replaceAttribute(..., "oxygen", 1))
Return:
Activity
dgeb commentedon Mar 21, 2022
We should probably reverse the order of these settings, so that custom settings can always be used to override defaults. For example:
Of course, we'll need some tests to ensure that this doesn't have unintended side effects.
SafaAlfulaij commentedon Mar 21, 2022
Exactly. I'm not sure though why it was not like that when you wrote it :)