Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve state lock-out with reflection (#3924)
An improvement/iteration on #3890: - Hide the state symbol from all methods relying on `[[OwnPropertyKeys]]` [^1] - Do some error handling to help users if they're facing an error due to a double-load of Headless. Further improvements to consider for 'next-gen' controller: - Add safeguards for cross-contaminations on controller instantiation, see [POC](https://louis-bompart.github.io/automatic-eureka/) ([source](https://github.com/louis-bompart/automatic-eureka/tree/main)) [^1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/Proxy/ownKeys --------- Co-authored-by: Frederic Beaudoin <fbeaudoin@coveo.com>
- Loading branch information