Giter Site home page Giter Site logo

Comments (8)

 avatar commented on May 2, 2024

@aft-luke I like the one-to-one comparison. Using a login example highlights the differences between redux-thunk and redux-saga quite well.

I'm just starting out with redux-saga and getting familiar with it so I can't answer your first question.

Should it appear in the docs? As a new user I think it would help to have a one-to-one example from redux-thunk considering most people using redux will be familiar with it.

If it would be a welcome addition, I wouldn't mind working on a PR to use gitbook for documentation. The cost would be harder upkeep of the docs (e.g. making sure these types of examples still work, etc). There is a certain beauty about keeping all the documentation in a single README.md, but by using something like gitbook these additional examples can be added in without worrying about bloat.

from redux-saga.

yelouafi avatar yelouafi commented on May 2, 2024

Sagas that milmics the thunk callbacks are generally wrapped inside a while(true). the examples dir re-implement some of the original redux/thunk examples so I don't think there is a lack on this side. although I agree there is a lack on the docs side: step by step tutorials; showcase of complex flow implementations; handling common concurrency concerns...)

@trevorsenior

If it would be a welcome addition, I wouldn't mind working on a PR to use gitbook for documentation

Didn't work with gitbook before; but from the site docs, it seems like publishing gitbooks isn't done in the Github repo but instead on the gitbook site https://github.com/GitbookIO/gitbook#publish-your-book.

Of course any contribution is welcome

from redux-saga.

gaearon avatar gaearon commented on May 2, 2024

Didn't work with gitbook before; but from the site docs, it seems like publishing gitbooks isn't done in the Github repo but instead on the gitbook site https://github.com/GitbookIO/gitbook#publish-your-book.

The site is optional, you can totally make it work with Github Pages. You can check out docs:publish in package.json of Redux to get an idea.

from redux-saga.

danscan avatar danscan commented on May 2, 2024

I'm new to redux-saga and checking out the Readme with no prior knowledge. The one thing I'm really puzzled by is the difference between take, put, etc. Even a bulleted list of the API methods with one-liners would be very helpful.

from redux-saga.

yelouafi avatar yelouafi commented on May 2, 2024

@danscan yeap; API docs is terribly lacking; hope to do it soon.

from redux-saga.

yelouafi avatar yelouafi commented on May 2, 2024

opened #70 to centralize feedback

from redux-saga.

yelouafi avatar yelouafi commented on May 2, 2024

also will close this; feel free to add your suggestions to #70

from redux-saga.

yelouafi avatar yelouafi commented on May 2, 2024

@danscan there is a new section for API docs

http://yelouafi.github.io/redux-saga/docs/api/index.html

Will be adding more content later

from redux-saga.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.