Skip to content

Commit 8c2e92b

Browse files
authored
fix(solid.js): update greetMsg signal getter (#397)
* fix(solid.js): update greetMsg signal getter * chore: add change file * Update .changes/template-solidjs.md
1 parent 650ae93 commit 8c2e92b

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

.changes/template-solidjs.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"create-tauri-app": patch
3+
"create-tauri-app-js": patch
4+
---
5+
6+
Correct the usage of signal getter in Solid template

packages/cli/fragments/fragment-solid-ts/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function App() {
4343
</div>
4444
</div>
4545

46-
<p>{greetMsg}</p>
46+
<p>{greetMsg()}</p>
4747
</div>
4848
);
4949
}

packages/cli/fragments/fragment-solid/src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function App() {
4646
</form>
4747
</div>
4848

49-
<p>{greetMsg}</p>
49+
<p>{greetMsg()}</p>
5050
</div>
5151
);
5252
}

0 commit comments

Comments
 (0)