Closed Garethp closed 5 years ago
Sorry for the late reply, @Garethp, and thanks a lot.
I was thinking about implementing something similar to https://github.com/shakacode/react_on_rails/wiki/Caching , and this is similar. I thought about extending this make it more like the link. However, time is scarce :/, and I guess that it can be extended later as well.
It would be good to have some docs, will try to find time to write a section about this improvement.
This addresses issue #19 by adding a StaticReactRenderer which wraps around an existing renderer to provide caching, and registers two new twig functions to call this