Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connectToStores throws missing static properties error #1

Closed
peterpme opened this issue Oct 27, 2015 · 6 comments
Closed

connectToStores throws missing static properties error #1

peterpme opened this issue Oct 27, 2015 · 6 comments

Comments

@peterpme
Copy link

I'm trying to copy this example verbatim with no luck.

Are listenTo and getProps new methods we're supposed to be using in lieu of getStores, getPropsFromStores?

This is why I was asking about: altjs/connect-to-stores#1

return {
    listenTo() {
      return [form.store]
    },

    getProps(props) {
      return {
        form: form.getProps({
          name: props.initialName
        })
      }
    },
  }
@goatslacker
Copy link
Member

Both listenTo and getProps are available from this module: https://github.com/altjs/react

npmjs.com/package/alt-react

@ianks
Copy link
Contributor

ianks commented Oct 29, 2015

Should this be updated in the README?

@goatslacker
Copy link
Member

Removed connect example from the README altogether

@peterpme
Copy link
Author

:)

@peterpme
Copy link
Author

I'm sorry for not playing a role in this and submitting a PR with updates to that README.

@goatslacker
Copy link
Member

Oh its ok, thanks for pointing it out that it was confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants