As mentioned in the documentation, I overrode the configuration with custom backend calls for performing CRUD operations and used it in the config. While the calls are being made and responses are received, the EasyBlock component is not rendering the data.
export type Backend = {
documents: {
get: (payload: { id: string; locale?: string }) => Promise;
create: (payload: Omit<Document, "id" | "version">) => Promise;
update: (payload: Omit<Document, "type">) => Promise;
};
templates: {
get(payload: { id: string }): Promise;
getAll: () => Promise<UserDefinedTemplate[]>;
create: (payload: {
label: string;
entry: NoCodeComponentEntry;
width?: number;
widthAuto?: boolean;
}) => Promise;
update: (payload: {
id: string;
label: string;
}) => Promise<Omit<UserDefinedTemplate, "entry">>;
delete: (payload: { id: string }) => Promise;
};
};
As mentioned in the documentation, I overrode the configuration with custom backend calls for performing CRUD operations and used it in the config. While the calls are being made and responses are received, the EasyBlock component is not rendering the data.
export type Backend = {
documents: {
get: (payload: { id: string; locale?: string }) => Promise;
create: (payload: Omit<Document, "id" | "version">) => Promise;
update: (payload: Omit<Document, "type">) => Promise;
};
templates: {
get(payload: { id: string }): Promise;
getAll: () => Promise<UserDefinedTemplate[]>;
create: (payload: {
label: string;
entry: NoCodeComponentEntry;
width?: number;
widthAuto?: boolean;
}) => Promise;
update: (payload: {
id: string;
label: string;
}) => Promise<Omit<UserDefinedTemplate, "entry">>;
delete: (payload: { id: string }) => Promise;
};
};