-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
It has been pointed out to me that the terminology of certain features of this library is not optimal, especially when you learned about typical MVP patterns somewhere.
Things like instance and controller mean different things there.
My proposal would be the following:
resourcestays the sameinstancegets renamed topager- We'll get rid of
controlleraltogether, this can be justresource(it would reflect the relationship to resource better anyway)
Here's an example of how the resource would look like:
import { createResource, resource } from 'vuex-pagination'
let resource = createResource('books', fetchBooksPage)
// returns the same as this:
let resource = resource('books')Let me know what you think!
jonleesmith
Metadata
Metadata
Assignees
Labels
No labels