Open parbhatia opened 3 years ago
Seems to be related to #93. Thanks for creating the PR!
Hi @embiem @parbhatia! Thanks for this awesome package and this PR - may I ask, what is the status of this branch? Is there any way I can try to help progress this PR? :)
A bit rushed, this is what I changed to stop infinite rendering when using socket.io and multiple listeners. The basic problem being the inability to stop triggering
onChange
when loading saved data.If
loadSaveData
is provided with a third boolean parametertriggerChange: false
, we skip triggering the providedonChange
function.If no
triggerChange
is provided, it's business as usual.