Reader small image

You're reading from  Hands-On Design Patterns with React Native

Product typeBook
Published inSep 2018
Reading LevelExpert
PublisherPackt
ISBN-139781788994460
Edition1st Edition
Languages
Right arrow
Author (1)
Mateusz Grzesiukiewicz
Mateusz Grzesiukiewicz
author image
Mateusz Grzesiukiewicz

Mateusz Grzesiukiewicz has worked on numerous big projects, including an investment banking platform at Goldman Sachs, a Jira project management tool at Atlassian, and a recruitment portal at GoldenLine. All of these projects served millions of people, which made them great opportunities to test scalability and the industry's best design patterns. He strives to popularize the common patterns and help people grow their technology at scale. He has spent hundreds of hours teaching, for instance at a private programming school called Coder's Lab. He has over 5,000 students registered on his online React course on Udemy. He would love to bring programming to every household, hence this bookHands-On Design Patterns with React Native.
Read more about Mateusz Grzesiukiewicz

Right arrow

The saga pattern and Redux Saga

So far, we can perform simple API calls using fetch, and we know how to organize our code to be reusable. In some areas, however, we could do better if our application required it. Before we dive in Redux Saga, I want to introduce two new patterns: iterator and generator.

"Processing each of the items in a collection is a very common operation. JavaScript provides a number of ways of iterating over a collection, from simple for loops to map and filter. Iterators and Generators bring the concept of iteration directly into the core language and provide a mechanism for customizing the behavior of for...of loops."
- JavaScript guide on MDN web docs at:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators.

Introduction...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Hands-On Design Patterns with React Native
Published in: Sep 2018Publisher: PacktISBN-13: 9781788994460

Author (1)

author image
Mateusz Grzesiukiewicz

Mateusz Grzesiukiewicz has worked on numerous big projects, including an investment banking platform at Goldman Sachs, a Jira project management tool at Atlassian, and a recruitment portal at GoldenLine. All of these projects served millions of people, which made them great opportunities to test scalability and the industry's best design patterns. He strives to popularize the common patterns and help people grow their technology at scale. He has spent hundreds of hours teaching, for instance at a private programming school called Coder's Lab. He has over 5,000 students registered on his online React course on Udemy. He would love to bring programming to every household, hence this bookHands-On Design Patterns with React Native.
Read more about Mateusz Grzesiukiewicz