How to use the @sitecore-jss/sitecore-jss-react.withSitecoreContext function in @sitecore-jss/sitecore-jss-react

To help you get started, we’ve selected a few @sitecore-jss/sitecore-jss-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Sitecore / jss / samples / basic-sample-react-graphql / lib / GraphQL / GraphQLData.js View on Github external
if (configuration.props)
            resultProps = Object.assign(resultProps, configuration.props(props));

          return resultProps;
        };

        const GQL = graphql(query, newConfiguration)(Component);
        return ;
      }

      componentDidUpdate() {
        resetExperienceEditorChromes();
      }
    }

    return withSitecoreContext()(SitecoreRenderingWrapper);
  };
}