Closed Ragnar-H closed 6 years ago
Discussion started here https://github.com/veritus/veritus-web/pull/77#discussion_r172592335
Dunno if this is best practice.
Currently our selectors have some error throws if data is missing. Maybe they should return null, maybe they should throw errors, maybe they should trigger a loading of the cache
null
...the selectors should just return null if the required data has not been loaded
Description
Discussion started here https://github.com/veritus/veritus-web/pull/77#discussion_r172592335
Dunno if this is best practice.
Currently our selectors have some error throws if data is missing. Maybe they should return
null
, maybe they should throw errors, maybe they should trigger a loading of the cache