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

Add FAQ section in the docs #809

Closed
jvanbruegge opened this issue May 4, 2018 · 9 comments
Closed

Add FAQ section in the docs #809

jvanbruegge opened this issue May 4, 2018 · 9 comments

Comments

@jvanbruegge
Copy link
Member

jvanbruegge commented May 4, 2018

A few questions keep popping up from time to time, most of the time related to snabbdom usage. Two current examples are #808 and #807 .
I think we should add a section in the docs where we can provide solutions for those common problems.
Problems to include:

@staltz
Copy link
Member

staltz commented May 4, 2018

Agreed! We could put it as a "chapter" in the Guide, after "Drivers" chapter.

@staltz
Copy link
Member

staltz commented May 4, 2018

#810

@jvanbruegge
Copy link
Member Author

Added a few FAQ entry to the top post (to be extended)

@jvanbruegge
Copy link
Member Author

Added lenses with makeCollection

@staltz
Copy link
Member

staltz commented Jun 15, 2018

Where are you adding these things?

@jvanbruegge
Copy link
Member Author

Oh, just to the top comment, to keep track of them. I havent started (or have the time to start) a proper FAQ yet

@jopek
Copy link

jopek commented Oct 3, 2018

TypeScript Problem

HTTP.select('XX').flatten() returns a MemoryStream<Response> & ResponseStream type. when assigning it to a Stream one gets a typescript error:

Type 'MemoryStream<Response> & ResponseStream' is not assignable to type 'Stream<Response>'.
  Types of property '_prod' are incompatible.
    Type 'import("/Users/alex/dev/learn/cyclejs/playground/node_modules/xstream/index").InternalProducer<import("/Users/alex/dev/learn/cyclejs/playground/node_modules/@cycle/http/lib/cjs/interfaces").Response>' is not assignable to type 'import("/Users/alex/dev/learn/cyclejs/playground/node_modules/xstream/index").InternalProducer<Response>'.
      Type 'import("/Users/alex/dev/learn/cyclejs/playground/node_modules/@cycle/http/lib/cjs/interfaces").Response' is not assignable to type 'Response'.
        Property 'headers' is missing in type 'Response'.

TypeScript probably thinks you mean this Response https://developer.mozilla.org/en-US/docs/Web/API/Response

Solution

import { Response } from '@cycle/http';

@bemayr
Copy link

bemayr commented Oct 17, 2018

Great idea, when showing cycle.js to programmers I often experienced that resetting state (e.g. reset the Counter Example to 0) requires a different thinking. Maybe we could add this as well.

@jvanbruegge
Copy link
Member Author

I am closing this in favor of #851

@jvanbruegge jvanbruegge pinned this issue Apr 5, 2019
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

4 participants