Skip to content

🔥 feat(web): Offline behavior#107

Merged
Charles Hudson (phobetron) merged 1 commit into
mainfrom
NT-2002_web-offline-behavior
Jan 8, 2026
Merged

🔥 feat(web): Offline behavior#107
Charles Hudson (phobetron) merged 1 commit into
mainfrom
NT-2002_web-offline-behavior

Conversation

@phobetron
Copy link
Copy Markdown
Collaborator

@phobetron Charles Hudson (phobetron) commented Jan 8, 2026

The following has been done to improve offline behavior:

  • Addition of an online state in CoreStateful, defaults to true
  • Addition of listener logic to flip the online state in Web
  • Addition of an "offline queue" for PersonalizationStateful in Core
    • If online, event triggering methods request and return profile data immediately
    • If offline, event triggering methods queue event data and return undefined
    • The offline queue flushes as soon as online becomes true to ensure immediate updates

Some minor changes to the default state value configuration structure have also been included, so that will make more sense... I must have been stuck in a wrong-thinking decoupling pattern when I created the previous structure.

[NT-2124]

@phobetron Charles Hudson (phobetron) merged commit 6fffaa1 into main Jan 8, 2026
17 checks passed
@phobetron Charles Hudson (phobetron) deleted the NT-2002_web-offline-behavior branch January 8, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant