Multiple entities UI contexts #37
strigefleur
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
Use type guards in your code. https://www.typescriptlang.org/docs/handbook/advanced-types.html#using-type-predicates |
Beta Was this translation helpful? Give feedback.
0 replies
-
Umm, how does it help? In my mind it takes form of
as far as I understand it's not gonna work atm. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
By default it's great to have syntax for UI entities (really helpful btw)
What if I want to have different UI contexts to switch between for same
Todo
?having after union respectively
Todo & TodoFooUI
for one situation andTodo & TodoBarUI
for another.Beta Was this translation helpful? Give feedback.
All reactions