Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Refactor to playstreak sync state #19

Merged
merged 9 commits into from
Oct 16, 2024
Merged

Conversation

BrettCleary
Copy link
Contributor

@BrettCleary BrettCleary commented Oct 15, 2024

Summary

Refactor sync playsession state to be independent of quest details wrapper

Related to https://github.com/HyperPlay-Gaming/product-management/issues/657

Example Usage

import { questPlayStreakSyncState } from '@hyperplay/quests-ui'

// pass handlers here
questPlayStreakSyncState.init({})

...
// when game starts
questPlayStreakSyncState.keepProjectQuestsInSync(projectId)

...
// when game ends
questPlayStreakSyncState.clearAllTimers()

@BrettCleary BrettCleary self-assigned this Oct 15, 2024
@eliobricenov eliobricenov merged commit 648cf4c into main Oct 16, 2024
1 check passed
@eliobricenov eliobricenov deleted the fix/playstreak_sync branch October 16, 2024 15:56
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.

2 participants