You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am new at javascript and to this forum, so please bear with me.
I am looking to preload nested models using a generic function, giving it configuration string like so:
preloadModels("posts", "comments .users")
Which should preload the posts model with the nested comments and users models
I know I can manually preload the nested models but would like to use a generic function.
However I have no idea on how I can implement such a generic function or its even possible.
Any pointers in the right direction would be really appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am new at javascript and to this forum, so please bear with me.
I am looking to preload nested models using a generic function, giving it configuration string like so:
preloadModels("posts", "comments .users")
Which should preload the posts model with the nested comments and users models
I know I can manually preload the nested models but would like to use a generic function.
However I have no idea on how I can implement such a generic function or its even possible.
Any pointers in the right direction would be really appreciated.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions