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

BeforeInitialGet seems to only run once on combined data stores, but only sometimes #52

Open
Kampfkarren opened this issue Sep 5, 2019 · 2 comments

Comments

@Kampfkarren
Copy link
Owner

Kampfkarren commented Sep 5, 2019

No known repro case, it's happening in my game where:

local store = DataStore2("someCombinedKey", player)
store:BeforeInitialGet(callback)
print(store:Get()) -- The result of BeforeInitialGet
print(store:Get()) -- The original data?

BeforeInitialGet is only ran once, as observed by a print inside.

@Kampfkarren Kampfkarren added the bug label Sep 5, 2019
@Kampfkarren Kampfkarren added this to the 2.0.0 milestone Sep 5, 2019
@Kampfkarren
Copy link
Owner Author

Frustratingly, when it breaks it only breaks in one script but not the other. Very confused.

@Kampfkarren Kampfkarren changed the title BeforeInitialGet seems to only run once on combined data stores BeforeInitialGet seems to only run once on combined data stores, but only sometimes Sep 5, 2019
@Kampfkarren
Copy link
Owner Author

I'd bet money this is caused by #63 and #65

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant