Closed zoff4ick closed 9 months ago
Hello. On our last Q&A meeting we discussed that it would be useful to have a strict mode in data collector. Exact question in the video (https://youtu.be/OuHazDcfh7k?si=Vqw-Rz8CWKy1po8y&t=6550) (link with timecode)
By default we can reassign values of keys as many times as we want (at least as long as collector has done === false). But sometimes we don't need an ability of reassigning values and we want to work with less mutable structures/collections to prevent some uncontrolled changes/mutations. So I implemented the optional key "allowReassignment" in the collector's options. So if we want want to disable mutation of values for already assigned keys (those whom already store values) we should pass allowReassignment: false to options.
Please rename
allowReassignment
toreassign
done
npm t
)npm run fmt
)