Closed sadaszewski closed 2 years ago
Actually I am still getting this error from time to time. Sometimes I have to rebuild the app a couple of times to get it to work, I am pretty sure it is a bug.
I think I can confirm the initial suspicion in the end. I have found more instances where I was returning an array from render() and after refactoring those it works reliably.
It was another problem, solved now. False alert.
I was getting a
e.replace is not a function
error when returning an array of elements in therender()
method of one of my components. This works flawlessly with preact only but preact-i18n sometimes can start failing. I have not had the time to determine the exact conditions but I presume it has something to do with assuming that it the component is nested in another component and not in an array.