Skip to content

Is the data memoized? #32

@fotoflo

Description

@fotoflo

Im rewriting my display of the data now (a table) - react-table wants a memoized data set. Is the data memoized? I'm sorry I'm kind of a noob. If not memoized how do i memoize it?

const {
    data: sheetData,
    loading,
    error,
  } = useMemo(() => {
    return useGoogleSheets({
      apiKey: GAPI_CONFIG.apiKey,
      sheetId,
    });
  }, [sheetId]);

React Hook "useGoogleSheets" cannot be called inside a callback. React Hooks must be called in a React function component or a custom React Hook function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions