thefrontside / simulacrum

A simulation platform for use during testing, during development and for high-fidelity application previews
89 stars 14 forks source link

Simplify createSimulation and destroySimulation #174

Closed dagda1 closed 2 years ago

dagda1 commented 2 years ago

Motivation

Creating and destroying simulations as side effects of state changes was proving problematic and the code was slightly opaque.

Approach

Simplify things significantly by adding createSimulation and destroySimulation functions to the graphql context and call them from the resolvers in a more imperative manner.

netlify[bot] commented 2 years ago

✔️ Deploy Preview for simulacrum canceled.

🔨 Explore the source changes: 079e8e70e7a4a888435e54ea0c1bfe5b15341d73

🔍 Inspect the deploy log: https://app.netlify.com/sites/simulacrum/deploys/61e82e35196a7e000718696d