js-sdk icon indicating copy to clipboard operation
js-sdk copied to clipboard

[FEATURE] web-sdk: Access to provider status inside the provider

Open thomaspoignant opened this issue 1 year ago • 5 comments

Requirements

With the web-sdk v1.0.0, the provider status is now managed directly by the SDK which is great, but there are some usecases when it will be interesting to have access to the provider status inside the SDK.

One of the use cases I have is being able to send a CACHED reason when the provider is STALE.

thomaspoignant avatar Mar 29 '24 20:03 thomaspoignant

Totally agree with this, probably worth doing a spec update for this?

weyert avatar Mar 29 '24 21:03 weyert

Totally agree with this, probably worth doing a spec update for this?

Not sure what the others think but it could be a great idea to spec it.

thomaspoignant avatar Mar 30 '24 07:03 thomaspoignant

You mean read-only access, I guess based on your use-case? I think I could be convinced of that. :thinking:

toddbaert avatar Apr 02 '24 18:04 toddbaert

You mean read-only access, I guess based on your use-case? I think I could be convinced of that. 🤔

Yes read-only, I don't need to change the status but I need to have access to it.

thomaspoignant avatar Apr 02 '24 18:04 thomaspoignant

It might be slightly complicated to get the status due to domains. Perhaps we should quickly prototype it to see how it could be implemented and then used in a provider.

beeme1mr avatar Apr 02 '24 18:04 beeme1mr