Hello!
Recently I've discovered that binding to objects, on which Object.freeze was ran did not work, with some weird error about proxies.
I've put together a simple repository to demonstrate this issue here.
A workaround is to import such objects directly as separate modules, but in this case no binding to them is possible.
I find this concept useful, because it also insures runtime immutability, when things get boiled down to plain JS, you can never be to cautious of side effects there.
Please let me know if I am missing something or if anything else is needed.
Any help is appreciated.
BR
Dimitar
Hello!
Recently I've discovered that binding to objects, on which
Object.freezewas ran did not work, with some weird error about proxies.I've put together a simple repository to demonstrate this issue here.
A workaround is to import such objects directly as separate modules, but in this case no binding to them is possible.
I find this concept useful, because it also insures runtime immutability, when things get boiled down to plain JS, you can never be to cautious of side effects there.
Please let me know if I am missing something or if anything else is needed.
Any help is appreciated.
BR
Dimitar