Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 fix watch tests #986

Open
ciaranschutte opened this issue May 24, 2023 · 0 comments
Open

🐛 fix watch tests #986

ciaranschutte opened this issue May 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ciaranschutte
Copy link
Contributor

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behaviour

A clear and concise description of what you expected to happen.

@ciaranschutte ciaranschutte added the bug Something isn't working label May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant