How to convert props to TypeScript classes on navigation #1339
Unanswered
samdharris
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
On initial load, I convert data brought back in the initial page's props to TypeScript class instances for usage across my app as such
However, upon navigation, they are reverted back to normal JavaScript objects which breaks the UI (the property name cases change from camel to snake). Is there a recommended way to hook into the navigation and run the
transformPropsToModels
function or should I be doing this as a computed property in the Vue component?Beta Was this translation helpful? Give feedback.
All reactions