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
I use vuex-orm (latest version) on a large quasar project and am using STI. Now with some of the models I do get strange errors when using inheritance.
For example:
Client
Company inherits from Client
Court inherits from Company
Now for whatever reason I get errors about accessing Court before Client is defined, but I do not get this error on Company.
I do have a discriminator field (entity framwork core default field for STI)
On one other case I have a MasterData and at least 20 Models who inherit from MasterData. Here I am also seeing this error:
Uncaught ReferenceError: can't access lexical declaration 'MasterData' before initialization
I do believe I have done everything that is described in the docs, and for less complex models it seems to work fine. The only difference I see is that in the documentation it looks like all inherited models are defined in the same file as the basemodel, is this a requirement?
In the store/index.js I am making sure that the base models are always loaded and registered first before the inherited models get loaded and registered.
Am I doing something I should not do here?
The text was updated successfully, but these errors were encountered:
Moin :)
I use vuex-orm (latest version) on a large quasar project and am using STI. Now with some of the models I do get strange errors when using inheritance.
For example:
Client
Company inherits from Client
Court inherits from Company
Now for whatever reason I get errors about accessing Court before Client is defined, but I do not get this error on Company.
I do have a discriminator field (entity framwork core default field for STI)
I have the:
On one other case I have a MasterData and at least 20 Models who inherit from MasterData. Here I am also seeing this error:
Uncaught ReferenceError: can't access lexical declaration 'MasterData' before initialization
I do believe I have done everything that is described in the docs, and for less complex models it seems to work fine. The only difference I see is that in the documentation it looks like all inherited models are defined in the same file as the basemodel, is this a requirement?
In the store/index.js I am making sure that the base models are always loaded and registered first before the inherited models get loaded and registered.
Am I doing something I should not do here?
The text was updated successfully, but these errors were encountered: