GroceriStar Fetch Module

GroceriStar Fetch Module

  • Summary
  • GitHub
  • Help

›Selector

  • Getting Started

Chicken Kyiv

  • ChickenKyiv project

GroceriStar project

  • GroceriStar project

Meal Calendar project

  • Meal Calendar project

SearchAPI project

  • SearchAPI project

Search Form project

  • Search Form project

GraphQL

  • GraphQL

Selector

  • Selector

Stretch Goals

  • Stretch Goals

  • Test

Selector

In selector.js should import fetch like this

import { groceristar } from "@groceristar/groceristar-fetch";

then create function

const getAllIngredients = () => {
  return groceristar.getIngredients();
}

and add to export

export {
  getAllIngredients,
  ...
}

To use this function you will need to import like this

import { getAllIngredients } from '../../selectors/selector';

getAllIngredients();
← GraphQLStretch Goals →
GroceriStar Fetch Module
Docs
Getting StartedGroceriStar sectionChickenKyiv sectionMeal Calendar sectionSearch API sectionSearch Form section
More
BlogGitHubStar
Copyright © 2019 GroceriStar company