We've run into a ceiling and are hoping for a magic configuration or method call suggestion.
Problem:
Our subsnippets are being recalculated on every keyup of the parent snippet despite not utilizing any variables from the parent snippets. UX has jank, especially on chromebooks.
Attempted solution so far:
Move as many calculations as possible into the done handler of the subsnippet urlload handlers.
Considered solutions:
Debounce. This isn't applicable because the actual fetches (urlloads) are not happening on every keyup.
React analogous solution:
In react, we'd simply memorize either the sub component entirely or use useCallback internally on the calculations.
Hi, Text Blaze creates a dependency graph between variables in your snippets so recalculations of formulas should only happen when their inputs change.
It sounds like you may be seeing something different. If possible, could you share a simple example that reproduces what you are seeing?
I already responded on email, but posting here as well. Around 2-3 weeks from now, the fix should be in production.
If you want earlier access to verify the fix first, you can use the beta extension version (feel free to email me if you need help doing that)