vigetlabs / microcosm

Flux with actions at center stage. Write optimistic updates, cancel requests, and track changes with ease.
http://code.viget.com/microcosm/
MIT License
487 stars 29 forks source link

Docs gaps and common pitfalls #250

Open leobauza opened 7 years ago

leobauza commented 7 years ago

@nhunzaker and I were talking earlier about common problems (maybe we need a common gotchas/mistakes/whatever section) and about internal documentation.

If anyone has any common problems, gaps in documentation, or hidden documentation that we aren't exposing at a top level (ie. the site, the top level README) then comment here.

Doc Gaps and Errors in Site:

Common Pitfalls (need a section for these):

cwmanning commented 7 years ago

https://github.com/vigetlabs/microcosm/blob/master/docs/api/microcosm.md#addeffectconfig-options has a code example that is adding a domain.

cwmanning commented 7 years ago

The difference between patch and reset is not clear to me. Is it possible to show an example input/output for those to illustrate the difference?

nhunzaker commented 7 years ago

We just hit another one. withSend wraps components, which can be confusing when using Enzyme's shallow rendering.