Skip to content

How can I use api calls in useWorker? #116

@KbnCodes

Description

@KbnCodes

[Required] Describe the bug
I need to get data from backend and store that large amount of data to indexeddb , But issue is when iam using axios or fetch iam getting error , is there any other option to invoke api calls ?

"Uncaught ReferenceError: axios__WEBPACK_IMPORTED_MODULE_2___default is not defined" --- this error getting when using axios ,

[Required] Expected behavior
is there any inbuild method to call api ? ot any way to import third party library like axios

[Optional] Screenshots

[Optional] Device (please complete the following information):

  • OS: [Windows]
  • Browser [chrome]

[Optional] context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions