Skip to content

Chapter 5 - Missing loading prop on withData function #23

@juan267

Description

@juan267

On chapter 6 page 83 the following withData function is show:

const withData = graphql(SECTION_QUERY, {
  props: ({ data: { section }}) => ({ section })
})

It should be:

const withData = graphql(SECTION_QUERY, {
  props: ({ data: { section, loading }}) => ({ section, loading })
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions