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

Subscriptions: How to "Listen" for Events and What to do ... #57

Closed
5 tasks done
nelsonic opened this issue Aug 9, 2018 · 1 comment
Closed
5 tasks done

Subscriptions: How to "Listen" for Events and What to do ... #57

nelsonic opened this issue Aug 9, 2018 · 1 comment

Comments

@nelsonic
Copy link
Member

nelsonic commented Aug 9, 2018

In order to have "Event Listeners" (so users can hit the [Enter] Key to create a Todo Item #55)
We need to add "Subscriptions" to Elm(ish).
see: https://www.elm-tutorial.org/en/03-subs-cmds/01-subs.html

Todo

  • investigate/research if we need to register events each time the DOM is re-rendered
  • write a test for subscriptions ... e.g:
    • [Up] & [Down] keyboard key press increases/decreases the counter.
  • add subscriptions parameter to mount function
  • invoke the subscriptions in mount depending on the outcome of initial research

required for: #55

@nelsonic nelsonic mentioned this issue Aug 10, 2018
21 tasks
nelsonic added a commit that referenced this issue Aug 10, 2018
nelsonic added a commit that referenced this issue Aug 10, 2018
@nelsonic
Copy link
Member Author

counter-reset-keyboard-subscriptions-tests-passing

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

No branches or pull requests

1 participant