agile-ts / agile

🌌 Global State and Logic Library for JavaScript/Typescript applications

Home Page:https://agile-ts.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Subscribe to Group value

bennoinbeta opened this issue Β· comments

commented

πŸ†• 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