solid-auth-client icon indicating copy to clipboard operation
solid-auth-client copied to clipboard

Document request event

Open linonetwo opened this issue 6 years ago • 1 comments

Doc said there are three types of events https://github.com/solid/solid-auth-client#events

But what's this 'request' event? https://github.com/solid/react-components/blob/54ab590ffb79e645f5a4c898057ab94e282b3bad/src/UpdateTracker.js#L95

linonetwo avatar Mar 29 '19 16:03 linonetwo

Good spot!

This was hastily added for the React components in v2.3.0 (https://github.com/solid/solid-auth-client/commit/915996d1331c98f517dfc66bd4dd9e0ec5699e38).

It is a way of keeping track of what requests pass through fetch in order to perform things like cache invalidation.

We can/should add it to the documentation.

RubenVerborgh avatar Mar 29 '19 16:03 RubenVerborgh