Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: change defaultProps generation for react #1661

Merged
merged 25 commits into from
Feb 28, 2025
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
08601cc
refactor: change defaultProps generation for react
nmerget Jan 15, 2025
89fa706
chore: update snapshots
nmerget Jan 15, 2025
2f2a09f
Merge branch 'refs/heads/main' into refactor-react-default-props
nmerget Jan 16, 2025
fb0f169
refactor: default props passing for react
nmerget Jan 16, 2025
ea0a513
fix: issues with e2e tests
nmerget Jan 16, 2025
ae011cb
fix: issue with e2e for stencil
nmerget Jan 16, 2025
af767e2
chore: run fmt
nmerget Jan 16, 2025
d976239
fix: issue with vue default props
nmerget Jan 16, 2025
c979fce
fix: issue with default props for e2e tests
nmerget Jan 16, 2025
45dcee4
fix: issue with stencil e2e test for default props
nmerget Jan 16, 2025
37d430e
fix: issue with stencil types for e2e
nmerget Jan 16, 2025
e79fc03
fix: issue with stencil local exports
nmerget Jan 17, 2025
4019365
chore: add test results upload to find issues with e2e tests
nmerget Jan 17, 2025
3a280dc
chore: rename default-props.lite.tsx to fix issue with react e2e
nmerget Jan 17, 2025
d319ea5
chore: provide e2e builds on failure
nmerget Jan 17, 2025
d5fd05a
chore: exclude node_modules
nmerget Jan 17, 2025
95b5378
test: trigger avoiding nx remote cache
nmerget Jan 17, 2025
aba9846
Merge remote-tracking branch 'builderIO/main' into refactor-react-def…
nmerget Feb 25, 2025
d1bd12e
fix: issue with rsc functions
nmerget Feb 25, 2025
f0909e4
chore: update snapshots
nmerget Feb 26, 2025
8f9309c
Merge remote-tracking branch 'builderIO/main' into refactor-react-def…
nmerget Feb 28, 2025
18fd018
fix: issue with doubled variable name
nmerget Feb 28, 2025
69033a3
Merge branch 'main' into refactor-react-default-props
nmerget Feb 28, 2025
dcc8d32
chore: update snapshots
nmerget Feb 28, 2025
d3346e5
Merge remote-tracking branch 'origin/refactor-react-default-props' in…
nmerget Feb 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: issue with default props for e2e tests
nmerget committed Jan 16, 2025
commit c979fce31a4dd98331bf4882a1185f1e92340835
Original file line number Diff line number Diff line change
@@ -2,7 +2,12 @@ import { useDefaultProps, useStore } from '@builder.io/mitosis';

useDefaultProps({ foo: 'abc', bar: 'foo' });

export default function DefaultProps(props: any) {
type Props = {
foo?: string;
bar?: string;
};

export default function DefaultProps(props: Props) {
const state = useStore({
getProps: () => {
return JSON.stringify({ foo: props.foo, bar: props.bar });