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

WIP suggestion for #238 #245

Closed
wants to merge 2 commits into from
Closed

Conversation

naugtur
Copy link

@naugtur naugtur commented Jun 25, 2017

I didn't exactly like where #238 was going with components looking like more hperapp apps with separate state and actions.

I've built something that's similar to how redux-react does single source of truth.
Actions would stay on the main app along with the state they're modifying.

The only issue I think has to be fixed before this is viable is finding a better place to put context in. It has to be rooted in the app, but I didn't find the right place yet. It'd probably eliminate the need to have Provider at all.

see /poc for usage example.

@naugtur naugtur mentioned this pull request Jun 25, 2017
@jorgebucaran
Copy link
Owner

jorgebucaran commented Jul 1, 2017

@naugtur Can you modify this PR's title? How do you want to name this feature? 😄

I have a few other questions:

  1. What is connect?
  2. What is context?
  3. What is Provider?
  4. Can you please update the POC example to make it a bit more readable? I find it odd to call the counter tag Controls. Is it just me? 😅

@naugtur
Copy link
Author

naugtur commented Jul 2, 2017

This is an old proposal and seeing the thread with Components evolve so much, I want to push it in a simpler direction.

I'll rename some things as I go.

@jorgebucaran
Copy link
Owner

@naugtur Awesome thanks!

@jorgebucaran
Copy link
Owner

@naugtur What's up! I think I'd prefer to close here and leave it up to you to reopen/create a new PR when the time is right. 😄

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.

2 participants