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
live reload code can put mongo in weird state where models are trying to reinitialised
solution seems to be check if mongoose.models.x exists already and if not, create the model fresh
downside.. we loose type checking on our model due to Mongoose<any,{},{}>
Steps To Reproduce
Steps to reproduce the behaviour:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behaviour
A clear and concise description of what you expected to happen.
The text was updated successfully, but these errors were encountered:
Describe the bug
live reload code can put mongo in weird state where models are trying to reinitialised
solution seems to be check if mongoose.models.x exists already and if not, create the model fresh
downside.. we loose type checking on our model due to Mongoose<any,{},{}>
Steps To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
A clear and concise description of what you expected to happen.
The text was updated successfully, but these errors were encountered: