Does FDK support Async/Await?

Hi,

I wrote functions in Async/Await manner for ticket sidebar app. When I tried to pack the app it throws me an error saying Parsing error: Unexpected token function. In Freshworks Huddle Q&A I received a response saying Async/Await is supported in FDK. Does FDK support Async/Await?

1 Like

I have used the async await feature in the latest fdk. But it is supported in the server.js file(node) .

fdk uses lint. I believe it might throw an error when using async await in the app.js files.

5 Likes

Hi @arshath.h,
Async/Await functionality is supported only in serverless component of the app. For frontend component, it is not supported

1 Like

Hi @arshath.h,

This has already been given as feedback in this topic.

Keep an eye on this topic and another on our forum announcements for future support on frontend component of the FDK. :smiley:

1 Like

I would also like to join in the request for async/await pattern. I come from a C# background where it is the preferred pattern and working with promises is total garbage especially with the 5 callback limit.

1 Like

How far in the future?

1 Like

Thanks all for the awesome responses. Eagerly waiting for Async/Await in frontend. It will definitely change how we develop frontend apps.

2 Likes