( getRandomString does not yield it’s just a basic random string generator)
This is the output:
So the data store itself definitely isn’t nil as we can see from the first print, meaning it’s definitely UpdateAsync not returning the updated value of the data store
Is there something I’m doing wrong here, or perhaps a misunderstanding on my part?
UpdateAsync effectively just returns whatever its handler function returns (which is also what data is ultimately saved). Your code modifies the table is receives but does not return it back to UpdateAsync; as a result, the save attempt is aborted and the function returns nothing.
Ah thanks, works now. The wiki kind of misled me saying UpdateAsync itself will return the updated value, it should say it returns the handler function.