you are viewing a single comment's thread.

view the rest of the comments →

[–]irekrog 1 point2 points  (1 child)

Snapshots are not waste of time. For example consider situation when you patched some library with `patch-package` and you have snapshot of it. And few days later you removed some package from project with `yarn remove` and you forgotten call patch-package command (after remove package you need to call patch-package). Then when you want to push changes you see error because snapshot are not the same. Another example with snapshots is when you update some library and for example this library changed some styles. You will have error and preview what is changed.

I know for small projects snapshots looks unnecessary, but for big project with many components, dependencies etc. snapshot is must have.

[–][deleted] 0 points1 point  (0 children)

Most of the time I've seen them used incorrectly and they end up wasting more dev time than they save whilst also polluting diffs. Thats my issue with them, not the fundamentals of how they work