-
Hi, We have some data types we use for formatting, but sometimes they're not quite ready yet. To handle this, we use the persistent variables system to trigger an update event and reformat, which usually works fine. However, we hit an issue when we've got further selectors in the mix. Take this example: "Hello {myAsyncData.name}". Here, if "myAsyncData" isn't ready yet, we get an error because it can't find "name". What's a smart way to stop formatting for a specific selector when we know that any further selectors are gonna fail because we're not ready yet? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
@karljj1 Coming back to the idea "Extend the A reason why I'm coming back to this questions is: I'm currently reconsidering the |
Beta Was this translation helpful? Give feedback.
-
@mikasoukhov As I noticed in your fork of SmartFormat, you have added the |
Beta Was this translation helpful? Give feedback.
Currently I'm on vacation and thus a bit limited by available tools. So sorry for the delay.
You're looking for a smart solution for scenarios,
ISource
cannot return the requested data, because it's not available yet, andThe implementation in the PR would be a solution indeed.
I have a small concern with using the exception message as the text to output. A separate property would be more open for any extensions. The class could be
internal
?What I suggest here is to give the exception a name containing the cause, instead of the action to be taken, e.g. instead of
AbortFo…