linkref icon indicating copy to clipboard operation
linkref copied to clipboard

throw TypeError with React

Open chentsulin opened this issue 9 years ago • 5 comments

TypeError: Can't add property input, object is not extensible

Repro in #1

chentsulin avatar Oct 27 '16 08:10 chentsulin

Hi @chentsulin - I was seeing this too and actually removed the React test I had originally added. Not really sure how to move forward other than using Map, which seems a bit ridiculous for such a simple task. Any ideas?

developit avatar Oct 27 '16 13:10 developit

Hi, I'm having this error too when my refs are: "parent", 0 (the number), a slash "/"... It looks like this is related to using javascript keywords or something. But then, I'm having the same problem with other refs which are not javascript keywords and I'm not sure why this happens. Could you give a hint please?

landabaso avatar Feb 17 '17 09:02 landabaso

hmm - how are you accessing the refs?

developit avatar Feb 17 '17 12:02 developit

Hmm, so this does not work with React then? Mind removing "works with React" from the github repo description?

kylpo avatar May 02 '17 19:05 kylpo

I would guess this doesn't fail in react's prod mode, or in newer versions of react where string refs aren't supported.

developit avatar Jan 31 '19 16:01 developit