Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Is there a way of updating apiFetch after it has been set? #11

@arnvanhoutte

Description

@arnvanhoutte

At the moment the apiFetch function has to be set at the initialization of the page.
The problem I have with this is that I cannot use my angular services then because angular has not been loaded at that time. I was wondering if there maybe could be a way to set apiFetch later on, maybe at the initialization of the editor? Eg like this:

  import { apiFetch }  from 'src/app/new-api-fetch'
  import { editPost } from '@frontkom/gutenberg-js';
  editPost.initializeEditor('editor', 'page', 1, settings, {}, apiFetch);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions