Closed baramofme closed 3 weeks ago
It might be not to have weakmap for this project and test feature.
However, due to sunk costs, it is not easy to reverse technical decisions already made.
so, Even if you can't eat it, go!
here's a model. define proxy inside constructor, not outside .
TypeError: Cannot use 'in' operator to search for 'importFromNotion' in undefined
in operator cannot use find function in object.
so need to convert it to string.
It'll be working fine.
currently class tructure uses weakmap for strong garbage collection and hidden data from public.
I don't know it's a good choice. but, I need one thing now. make a dynamic getter and setter by applying proxy getter setter for accessing to weakmap data as key.
here's ref: https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Proxy