Refine Telemetry Component Explained In 60 Characters
Refine's Telemetry component sends usage data to refine.dev, encoding payload with JSON.stringify & base64, using transport function which falls back to Image or fetch if available.
In this article, we will review the Telemetry component in Refine source code.
...
<UnsavedWarnContextProvider>
<RouterComponent>
{children}
{!disableTelemetryWithDefault && (
<Telemetry />
)}
<RouteChangeHandler />
</RouterComponent>
...
This above code snippet is picked from /packages/core/src/components/containers/refine/index.tsx#L196
Telemetry
In the Refine component, Telemetry is imported as shown below
import { Telemetry } from "@components/telemetry";
To find the Telemetry code, we should look at @c...