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

Remove store from factories #3075

Merged

Conversation

fivetanley
Copy link
Member

When using multiple stores with Ember Data, we want to avoid storing the
state on the factory itself. Because multiple stores currently share the
same factory, this means that the first store to look up the factory
will store itself as the store on that factory. That means that any
stores thereafter will receive factories whose store property
references the first store, not their own.

@fivetanley fivetanley changed the title Remove store from factory instances Remove store from factories May 17, 2015
@fivetanley fivetanley force-pushed the remove-passing-factories-to-store-methods branch from 7271cf1 to ccacc97 Compare May 18, 2015 06:16
When using multiple stores with Ember Data, we want to avoid storing the
state on the factory itself. Because multiple stores currently share the
same factory, this means that the first store to look up the factory
will store itself as the `store` on that factory. That means that any
stores thereafter will receive factories whose `store` property
references the first store, not their own.
@fivetanley fivetanley force-pushed the remove-factory-state branch from 2b3a64a to 5bbd048 Compare May 18, 2015 22:58
fivetanley added a commit that referenced this pull request May 22, 2015
@fivetanley fivetanley merged commit a0cb717 into remove-passing-factories-to-store-methods May 22, 2015
@fivetanley fivetanley deleted the remove-factory-state branch May 22, 2015 05:01
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

Successfully merging this pull request may close these issues.

1 participant