agile-ts / agile

🌌 Global State and Logic Library for JavaScript/Typescript applications
https://agile-ts.org
MIT License
95 stars 8 forks source link

Async Compute method in Computed Class #156

Closed bennobuilder closed 3 years ago

bennobuilder commented 3 years ago

🆕 Feature Request

❓ Is your feature request related to a problem?

No

📄 Describe the solution you'd like

Make the Computed Class accept an async compute method.

const MY_COMPUTED = App.createComputed(() => {
  await xyz;
});

📃 Describe alternatives you've considered

no

bennobuilder commented 3 years ago

159