Skip to content

Improve terminology #2

@MaxGfeller

Description

@MaxGfeller

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:

  • resource stays the same
  • instance gets renamed to pager
  • We'll get rid of controller altogether, this can be just resource (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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions