Replies: 2 comments 1 reply
Feel free to create an issue for that. FYI you can pass multiple args directly to get like
|
I think the option to traverse ArkTypes at runtime might seem like an anti-pattern at first, but it actually opens up great opportunities for extensibility or integration with existing solutions. Another example is a problem I’m currently dealing with: at our company, we use a custom framework for application state management that's based on paths. Unfortunately, until now, state mutation operations haven't been validated in any way, which sometimes leads to hard-to-track issues.
Sounds like a great candidate to become an "official" feature? ;) Just make it publicly accessible instead of hiding it under |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I’m not sure if this is a question or a feature idea…
Given a main type and a path, I’d like to extract (runtime) a nested type (or an array of them):
For the simple example above, this would work:
However, this won’t work if user is optional, e.g., User.or('null'), or if:
My problem is perfectly solved by
Main.internal.flatRefs, but since I’m usinginternal, which isn’t even mentioned in the documentation, I understand that I should expect this field or data type may disappear or change drastically in the future?All reactions