Kampfkarren / Kampfkarren/Roblox

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

Open
#52 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Lua
Stars
391
Forks
95
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the combined DataStore2 path and the BeforeInitialGet and Get entry points shown in the report. First reproduce the two-call snippet in a minimal Roblox setup, then determine whether the callback is expected to run once or whether the second Get returns incorrect data; done means a confirmed cause and a reproducible regression case.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.