Skip to content
This repository was archived by the owner on Dec 27, 2023. It is now read-only.
This repository was archived by the owner on Dec 27, 2023. It is now read-only.

oc-template-react without data provider (server.js) #168

Open
@nickbalestra

Description

@nickbalestra

At the moment we always wrap the react app within the hoc provider even if the component doesn't have a data configured in the package.json (no server.js case). The provider to work need a serverless function to be present as we enhance it for them to seamless work together.
In the case where no server is defined such contract break and there is no point in wrapping the app with the provider at that point, although one might want to be abler to ship a react application that doesn't need a serverless function with it.

Suggested solution:
Don't wrap at compile time the react app with the provider in case there is no data defined in the package.json of the component

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions