8000 How to import store.on? · Issue #31 · nbubna/store · GitHub
[go: up one dir, main page]

Skip to content

How to import store.on? #31

@frangeris

Description

@frangeris

First, thanks for this awesome lib..!

I'm using store2 on vue.js without problems, but now I want to import store.on, how to do it?

import Storage from 'store2' // WORKS!

// Uncaught TypeError: Cannot read property '_' of undefined
import StoreOn from 'store2/src/store.on'

So, why not include extensions via "ES6 Destructuring and Module imports"? It could be nice do this:

import Storage, {StoreOn, StoreOverflow, StoreQuota} from 'store2'

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0