Max Wheeler
Max Wheeler
Nice one—I think that should do the trick. My only worry is if you're comparing the two normalised values for deciding whether the `$postback` value has changed then you might...
Yup, still works. I have mine setup to normalize for the check if `$postback-value = $initial-value` but the `$initial-value` I'm outputting is raw (not normalized).
For sure. Integrate away.
> but should there be a difference between your two points? Yep, it is subtle, but there is a difference. The scenario I’m looking at is: * A `listResource` loads...
> you'd like the current data to be displayed until the fetch has completed? That is correct, yep. A "stale while revalidate" if you will.
Awesome, thanks! It’s definitely something that can be done around the existing API, but it adds a fair bit of boilerplate and I can seem it being a behaviour I’d...
@theKashey Yes, defined wasn’t suggesting we actually use a hook within the resource body! I’d be interested to see more about how your declarative example works in practice. Thinking about...
Oh, and I realise that it would be a lot more difficult to do the sort of composition outside the library in the case of trying to support derived state...
Yep, right, that makes sense to me. Thanks for outlining it in a bit more detail!
Thanks for responding, @jquense! If you’re open to it, I could have a look at implementing a persistent cache through that vendored library?