Function createNetworkSampleAtom
- createNetworkSampleAtom(context, type, sizeInBytes?, roundTripTime?, downloadTime?, timestamp?): StateAtom<NetworkSample, {
setDownloadTimeSeconds: typeof __type;
setRoundTripTimeSeconds: typeof __type;
setSizeInBytes: typeof __type;
setTimestamp: typeof __type;
setType: typeof __type;
}>
-
Parameters
-
-
-
Optional
sizeInBytes: number
-
Optional
roundTripTime: number
-
Optional
downloadTime: number
-
Optional
timestamp: number
Returns StateAtom<NetworkSample, {
setDownloadTimeSeconds: typeof __type;
setRoundTripTimeSeconds: typeof __type;
setSizeInBytes: typeof __type;
setTimestamp: typeof __type;
setType: typeof __type;
}>
Given a context with the state effect