veritus / veritus-web

Frontend
https://deploy-preview-32--announcer-tachometer-25258.netlify.com/
2 stars 0 forks source link

Selectors should trigger fetching if cached data is missing (?) #81

Closed Ragnar-H closed 6 years ago

Ragnar-H commented 6 years ago

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

Ragnar-H commented 6 years ago

...the selectors should just return null if the required data has not been loaded