deco-cx / deco-cx/apps

Standardize wishlist returns

Open
#326 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
28
Forks
30
Avg merge
1d 16h
Merged PRs (30d)
4

Description

## Issue Type

Please select the type of issue you are reporting:

- Feature Request
- Discussion

## Description

Currently, the wishlist loaders return different types for each integration.

**VTEX**
````
const loader = async (
props: Props,
req: Request,
ctx: AppContext,
): Promise => {
````

**WAKE**
````
const action = async (
_props: unknown,
req: Request,
ctx: AppContext,
): Promise => {
````

## Expected Behavior

We expect the same type of return, so we can be able to reuse this result in front end components.

## Actual Behavior

This creates the problem of not being able to build canonical components on the front end.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.