Skip to content

dynamically creating MST model based on a server response #1729

Answered by BATCOH
paxarpp asked this question in Q&A
Discussion options

You must be logged in to vote

Dynamic MST model creation is definitely possible with some boilerplate code.
However, this can be difficult to maintain and debug later on, especially if you want to use strong Typescript.

Quick and dirty basic example:
https://codesandbox.io/s/dynamic-mst-model-vyj4b?file=/src/index.js

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cmdcolin
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jamonholmgren
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants