Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

Document argument for unitTask/simpleTask #2

Open
grmble opened this issue Feb 13, 2018 · 1 comment
Open

Document argument for unitTask/simpleTask #2

grmble opened this issue Feb 13, 2018 · 1 comment
Labels
breaking change enhancement New feature or request

Comments

@grmble
Copy link
Owner

grmble commented Feb 13, 2018

Right now, unitTask is basically useless - everything in core with no result but side effects needs a Document.

Giving these functions the Document from TaskContext would make them more useful.

@grmble
Copy link
Owner Author

grmble commented Jun 23, 2018

In my experience using Bonsai so far, needing the document is the exception. In almost every case I used simpleTask, I've ignored the document arg.

  • simpleTask: no-arg, returns a single Cmd
  • unitTask: document argument, can not issue commands, for DOM side effects. Unchanged.
  • emittingTask: task context, can emit as often as it wants. Unchanged.

@grmble grmble reopened this Jun 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking change enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant