Azure / fetch-event-source

A better API for making Event Source requests, with all the features of fetch()
MIT License
1.79k stars 141 forks source link

In the process of onmessage, switch to another pages, it will resend the request. #51

Open hujun12 opened 1 year ago

hujun12 commented 1 year ago

In the process of onmessage, switch to another pages, it will resend the request.

imsai-sh commented 1 year ago

I ran into the same problem and solved it by referring to https://github.com/Azure/fetch-event-source/issues/17. Just need to add options: openWhenHidden: true

nickwong64 commented 1 year ago

Thanks. It works! 👍

loo-y commented 1 year ago

I ran into the same problem and solved it by referring to #17. Just need to add options: openWhenHidden: true

thanks, that's help me a lot.