Cambalab / vue-admin

An open source frontend Framework for building admin applications running in the browser on top of REST, using ES6 and Vue.js
GNU General Public License v3.0
132 stars 24 forks source link

Route bindings module is too coupled to the store utilities #187

Open sgobotta opened 4 years ago

sgobotta commented 4 years ago

Is your feature request related to a problem? Please describe. Someday we'd like to separate small parts of the core code to their own package. I notice the @router/route.bindings module knows too much about the @store/utils module. I'm not sure if this represents a problem right now, but it's starting to ring a bell.

Describe the solution you'd like We need an accurate and simple way for the Resource component to call the route bindings using imported utils, instead of the router knowing where those utils can be found.

Describe alternatives you've considered I imagine Resource importing a set of store utils and passing them to the createRouteBindings. open to discussion.