Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

Deep-copy default data before it can be mutated #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Reselim
Copy link
Contributor

@Reselim Reselim commented Apr 25, 2021

At the moment, defaultData is used directly when the document is initialized for the first time. This leads to nasty mutability bugs. (as I've just spent quite a few hours debugging...)

This issue deserves some tests. I might write those up soon.

@evaera
Copy link
Owner

evaera commented May 7, 2021

Nice. I think we should move copyDeep into its own file, like copyDeep.lua

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants