Providing data of null/undefined no longer blows up with or without LocalPlugin.
When data is null/undefined we now render a Loading component instead of NoResults.
Why these changes are made
User experience can be made less disruptive if the entire Griddle component doesn't need to be replaced by a loading animation (e.g. if a Settings component requires fetching new data).
Griddle major version
1.x
Changes proposed in this pull request
data
ofnull
/undefined
no longer blows up with or withoutLocalPlugin
.data
isnull
/undefined
we now render aLoading
component instead ofNoResults
.Why these changes are made
User experience can be made less disruptive if the entire Griddle component doesn't need to be replaced by a loading animation (e.g. if a
Settings
component requires fetching new data).Are there tests?
Stories!