cyntler / cyntler/react-doc-viewer

DocViewer requests twice.

Open
#154 2 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
TypeScript
Stars
481
Forks
147
PR merge metrics
No merged PRs in 30d

Description

Hi Cyntler.

When I using 'uri' props in 'DocViewer' component, It requests twice to my backend api.

here is my process.
![image](https://github.com/cyntler/react-doc-viewer/assets/57855110/4ded256d-6d97-4bfc-b2d0-09818229eae1)
when I request my file to backend, It needs 'Authorization' headers. The 'Next js API' was simply settings that headers

![image](https://github.com/cyntler/react-doc-viewer/assets/57855110/4b3a6639-0f53-4c5e-8480-130d8bc2b5cd)

![image](https://github.com/cyntler/react-doc-viewer/assets/57855110/c4e428b7-709d-4593-be36-8f598e4fad64)

When I tested except 'Nextjs API', same result ( requesting twice ).

what should i do? plz give me some feedbacks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.