bug: methods non decorated are available on React component #417
Labels
help wanted
a good issue for the community
package: react
@stencil/react-output-target package
type: bug
Something isn't working
Prerequisites
Stencil Version
4.12
Stencil Framework Output Target
React
Stencil Framework Output Target Version
0.5.3
Current Behavior
As described in the Stencil documentation:
The @Method() decorator is used to expose methods on the public API
.This works as expected for vanilla component, but the React output ones can access any methods regarding of the presence of the decorator.
Expected Behavior
Non decorated methods should not be accessible from the React component.
Steps to Reproduce
Given a simple component:
When using as vanilla component:
But as React ref:
Code Reproduction URL
https://github.com/dpellier/stencil-react-issue/tree/main
Additional Information
No response
The text was updated successfully, but these errors were encountered: