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
The result will be miss-formatted collection. The reason is that the OkContent normalizer use the array as direct result. (which makes sense since we should be able to return "single object" as a form of array)
Here are 2 potential solutions, vote on the issue if you feel concerned with ❤️ or 🎉 for the second.
First solution ❤️
Adding a new method setCollection(true) to the OkContent response.
Example of the problem:
The result will be miss-formatted collection. The reason is that the OkContent normalizer use the array as direct result. (which makes sense since we should be able to return "single object" as a form of array)
Here are 2 potential solutions, vote on the issue if you feel concerned with ❤️ or 🎉 for the second.
First solution ❤️
Adding a new method
setCollection(true)
to the OkContent response.The previous code would look like that:
Second solution 🎉
Adding a new class "collection" to Melodiia. The previous code would look like that:
WDYT?
The text was updated successfully, but these errors were encountered: