Update add-data-persistence.md
In a load method, if the directory does exist, we should return an empty collection not creating the directory and iterate over the files.
The diff adds a bug. I don't know if it crashes the app, or if the breakage is limited to the load method. I haven't run the app, I just looked three lines down in the diff.
The diff adds a bug. I don't know if it crashes the app, or if the breakage is limited to the load method. I haven't run the app, I just looked three lines down in the diff.
Can you elaborate about the bug?
On review, I'm wrong about this introducing a bug. I do wonder about keeping the code in these docs and the tutorial repo in sync.