UNPKG

@datadog/mobile-react-native

Version:

A client-side React Native module to interact with Datadog

19 lines (15 loc) 546 B
/* * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2016-Present Datadog, Inc. */ let _cachedSessionId: string | undefined; export const getCachedSessionId = () => { return _cachedSessionId; }; export const setCachedSessionId = (sessionId: string) => { _cachedSessionId = sessionId; }; export const clearCachedSessionId = () => { _cachedSessionId = undefined; };