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
Please provide a better documentation on how to use it with different use cases. For instance reading all items or reading a single item using Store. While I know how to setup this up, best practices are not clear from the current readme.
Also, the example omits precious type information and locally used datasource to be able to use method references like shown here:
Also, how to handle Nullability inside the fetcher? What if my API does return null? The Store only accepts Any as output or is this something that is handled internally and then it just returns the onError response?
The text was updated successfully, but these errors were encountered:
As for nullability inside a fetcher you have two options: if null is a valid value I would recommend transforming/wrap it (null object pattern). If null is an unexpected value I'd recommend throwing an exception instead. I'm afk today but will link the past issues/discussions about null handling.
Please provide a better documentation on how to use it with different use cases. For instance reading all items or reading a single item using Store. While I know how to setup this up, best practices are not clear from the current readme.
Also, the example omits precious type information and locally used datasource to be able to use method references like shown here:
Maybe consider adding a sample?
Also, how to handle Nullability inside the fetcher? What if my API does return null? The Store only accepts Any as output or is this something that is handled internally and then it just returns the onError response?
The text was updated successfully, but these errors were encountered: