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

reusable components #280

Open
EricWVGG opened this issue Jun 18, 2017 · 6 comments
Open

reusable components #280

EricWVGG opened this issue Jun 18, 2017 · 6 comments

Comments

@EricWVGG
Copy link

I have a project that requires reusable components… they look something like this:

<Article id="1" /><Article id="2" />

Obviously the reducer logic updates both components with the latest API call.

I have found a promising guide to encapsulating logic here — https://www.codementor.io/nwugurusunday/implement-a-reusable-reducer-logic-5eqjahjum — but the store is handled completely differently than ARC.

As a beginner, I'm a bit stumped. Am I overlooking something built-in? Is there a more correct way to accomplish this?

@Geczy
Copy link

Geczy commented Jun 19, 2017

Not an issue for arc...

Call the fetch once, and loop the list. Same as PostList is doing it here in arc

@EricWVGG
Copy link
Author

EricWVGG commented Jun 19, 2017 via email

@EricWVGG
Copy link
Author

EricWVGG commented Jul 13, 2017

I've crashed into this problem a second time three times. I have the equivalent of five PostLists in a single page.

@EricWVGG
Copy link
Author

EricWVGG commented Aug 11, 2017

Has anyone tried using redux-subspace with ARC? Looks promising, but I'm unclear on how to adapt the reducers.

https://github.com/ioof-holdings/redux-subspace

@lightstrike
Copy link

@EricWVGG I'm working on implementing reusable components with ARC as well and have investigated redux-subspace, but have not tried it yet. Have you made any progress?

@EricWVGG
Copy link
Author

EricWVGG commented Sep 20, 2017 via email

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