Skip to content

Use of rest api and custom layout #499

Answered by dbuezas
Pascal66 asked this question in Q&A
Discussion options

You must be logged in to vote

The problem is that you are still awaiting before returning the old value.
You need to remove the async keyword and use .then(()=> {....}) for the fetch command

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Pascal66
Comment options

@dbuezas
Comment options

@Pascal66
Comment options

@dbuezas
Comment options

Answer selected by Pascal66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants