agile-ts / agile

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

Subscribe to Group value #157

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

Allow the subscription to just the Group value and not the Group output.

// MyCompoent.tsx
const value = useValue(MY_GROUP);
console.log(value); // Returns [1, 2, 3, 4]

const output = useOutput(MY_GROUP);
console.log(output); // Returns [{id: 1, name: 'jeff', ..}]

📃 Describe alternatives you've considered

no