-
Notifications
You must be signed in to change notification settings - Fork 37
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
A real world example(s)? #90
Comments
That's fair. 🤔 Maybe something interacting with ember-data would be a good example to put to the ember-resources README. Like, class extends Component {
@service store;
someRecord = useFunction(this, (, id) => {
return this.store.findRecord('some-record', id);
}, () => this.args.id);
}
I'm sure the README phrasing can be better, but the gist is that they solve the problem of "reactive lazy data that resolves eventually". Like, without the resource, you'd need to find a way to call a function that calls findRecord yourself. Does that help? 🤔 |
Here are some additional examples: https://github.com/NullVoxPopuli/ember-data-resources/ |
- To give an example of how to use this ember-resources - To make sure people are not reinventing the wheel - To encourage people to create their own addons
- ember-array-map-resource
I think you covered (at least mine) most pressing questions. Now I think there is a value of cross linking ember-resources and ember-data-resources in the documentation to show people how things can be done. I created #120 for that. |
This one can be probably closed now. |
- To give an example of how to use this ember-resources - To make sure people are not reinventing the wheel - To encourage people to create their own addons
- ember-array-map-resource
doc(#90): cross link other addons
I'm having a hard time understanding what is a resource and when to use one. I think an example that shows a case where you use this library to solve standard problem would be nice.
The text was updated successfully, but these errors were encountered: