Skip to content

v0.2.0

Latest

Choose a tag to compare

@johnmicahreid johnmicahreid released this 02 Jul 12:13

Added

  • Contextune.clear(). Empties the event log (in memory and its persisted copy) without shutting the SDK down. Transport patches, subscribers, marketing and device capture, and the session clock all keep running, so the next getSnapshot() starts from a clean log on a session that is still live. Reach for it when the user's context resets but capture should continue, like on login. Unlike destroy(), it leaves the patches, subscribers, and session cookie in place.

    onLogin(() => Contextune.clear());

npm: @contextune/sdk@0.2.0