Open eddieajau opened 7 years ago
I'm looking at the falcor-router-demo and it looks like it is suggesting that if a resource is not found, you return a path value of undefined.
falcor-router-demo
undefined
results.push({ path: ['titlesById', titleId], value: undefined });
However, in cache/pathValueMerge.js, we've got:
else if ((pathValue.value !== null) && (pathValue.value.$type === $ref)) {
Am I right in assuming that I should return null, not undefined if the path is not found?
null
Thanks in advance.
I'm looking at the
falcor-router-demo
and it looks like it is suggesting that if a resource is not found, you return a path value ofundefined
.However, in cache/pathValueMerge.js, we've got:
Am I right in assuming that I should return
null
, notundefined
if the path is not found?Thanks in advance.