See if we can get rid of explicit `dispatch` in the views

Open
#39 16 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
fsharp, react
Domain
frontend

Research direction

Start by reviewing how dispatch is currently passed into views and the available Fable type-provider support. Investigate whether a generic React library can support a DSL that removes the dispatch argument, and define completion as views no longer requiring explicit dispatch without losing access to needed libraries.

Written by the indexing model from the issue text.

Description

People keep finding interesting ways to misuse the dispatch function we are passing into views.
Eliminating it has been on my wishlist from day one, unfortunately it means a DSL on top of React and all the libs we may want to use in the views.
Up till now I couldn't see a way around it, but maybe with type providers now working on Fable we can take a generic React lib and produce a DSL that would let us remove dispatch argument from the views?

Dominant language
F#
Stars
112
Forks
20
Avg merge
19h 52m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from elmish/react

All issues in elmish/react

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.