bughelp wanted
倉庫指標
- 星標
- (9,803 顆星)
- PR 合併指標
- (平均合併 1天 1小時) (30 天內合併 6 個 PR)
描述
Describe the bug
Infinite loop when trying to use getter methods in useState and exporting to HTML
To Reproduce
import { useState } from '@builder.io/mitosis';
import { kebabCase } from 'lodash';
export default function SmileReviews(props) {
const state = useState({
get kebabCaseValue() {
return kebabCase('testThat');
},
});
return (
<div data-user-kebab={state.kebabCaseValue}>
</div>
);
}
Expected behavior A clear and concise description of what you expected to happen.
Screenshots infinitely loops with the following error:
Additional context Add any other context about the problem here.