Simple fetch do not work #2473
-
I wrote very simple code:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
I don't think you can do it that way, you are using an async function to define x-data so everything is undefined. You can use a sync function, provide a sensible default for regions and populate it on init. |
Beta Was this translation helpful? Give feedback.
-
@SimoTod could you show me how sync function could look like? I have only one idea:
|
Beta Was this translation helpful? Give feedback.
-
For example. |
Beta Was this translation helpful? Give feedback.
-
@SimoTod
Do I need to place |
Beta Was this translation helpful? Give feedback.
For example.