Open kudmni opened 1 year ago
Got the problem. It's looking for template placeholders, but braces can be just a part of your code.
v1.2.5 should handle your problem
Thanks for the quick fix. But unfortunately it doesn't work with nested curly braces. For example:
<PrerenderedControler control={cacheControl}>
<p>{`Unpaired left curly brace { in text`}</p>
<CachedLocation cacheKey="the-key">any content</CachedLocation>
<p>{`Nested curly braces {{{}}} in text`}</p>
</PrerenderedControler>
will produce next result:
Unpaired left curly brace { in text
any content
Nested curly braces {}{ in text
any content
Nested curly braces }}{ in text
any content
Nested curly braces {}}} in text
Look like it's time to use a little smarter algorithm. The old sequential parser cannot handle situations like this. But that would take time
Hello! There is an issue with unpaired curly braces in text before and after cached component:
Minimal code to reproduce: