Resource CRUD
As an alternative to useDatamanager, which is only capable of providing entries of a single datamanager's models, we could use a different approach to resolve any Resource. We can respresent any ec resource with a string and resolve it with getResource.
#
ExampleHere, we are using useResources + resource names that are a "path" of relations and ids.
#
What's missing- Only Guesser components used so far. As all resource properties (excluding models) are static We could add List, Edit, Create and Show components for existing resources. But this can also be implemented in "user land", when needed.
- Caching
- Localization
- Entries are not available as relations (part of public api). The dataProvider should be able to accept resources like
dataManager|2b5c50c8|model|ld_order|entry|YZQRmwDxk9