-
Notifications
You must be signed in to change notification settings - Fork 4
fix issue jsonrpc id files mismatch with full reload #55
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
base: main
Are you sure you want to change the base?
Changes from 2 commits
93bde1d
af329c2
e163f67
6ff6216
ce01129
42d9b7f
c57b3c6
87c6369
c1b30fa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,14 +10,14 @@ | |
| <ItemGroup> | ||
| <PackageReference Include="Fable.Browser.Dom" Version="2.14.0" /> | ||
| <PackageReference Include="Fable.Core" Version="4.3.0" /> | ||
| <PackageReference Include="Nojaf.Fable.React" Version="0.0.2" /> | ||
| <PackageReference Include="Feliz" Version="2.9.0" /> | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. update to standard fable Feliz remove Nojaf.Fable.React experimental package from sample |
||
| <PackageReference Include="Thoth.Json" Version="10.2.0" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <Compile Include="Math.fs" /> | ||
| <Compile Include="Component.fsi" /> | ||
| <Compile Include="Component.fs" /> | ||
| <Compile Include="./components/TestComponent.fs" /> | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added an external component as the issue only happens when there is at least one component importing another it seems, not only with a root component |
||
| <Compile Include="RootComponent.fs" /> | ||
| <Compile Include="Library.fs" /> | ||
| </ItemGroup> | ||
| </Project> | ||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| module Components.RootComponent | ||
|
|
||
| open Feliz | ||
| open Fable.Core | ||
|
|
||
| JsInterop.importSideEffects "./app.css" | ||
|
|
||
|
|
||
| [<ReactComponent>] | ||
| let El () = | ||
| let count, setCount = React.useState 0 | ||
| React.fragment [ | ||
| Test.El({| name = "TestComponent" |}) | ||
| Html.h1 "Vite plugin rocks!" | ||
| Html.button [ | ||
| prop.onClick (fun _ -> setCount (count + 1)) | ||
| prop.text $"Current state {count}" | ||
| ] | ||
| ] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,4 +41,9 @@ h1 { | |
| box-shadow: 0px 3px 3px 0px rgba(0,0,0,0.25); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| #test { | ||
| color: red; | ||
| background-color: yellow; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| module Components.Test | ||
|
|
||
| open Feliz | ||
|
|
||
| [<ReactComponent>] | ||
| let El (props: {| name: string |}) = | ||
| React.fragment [ | ||
| Html.div [ | ||
| prop.style [ | ||
| style.backgroundColor "yellow" | ||
| style.animationName "spin" | ||
| style.animationDuration 3 | ||
| style.animationIterationCount.initial | ||
| style.animationTimingFunction.linear | ||
| ] | ||
| prop.children [ | ||
| Html.h1 $"My name is: {props.name}!" | ||
| ] | ||
| ] | ||
| Html.style [ prop.text "@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }" ] | ||
| ] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,8 +5,9 @@ | |
| "type": "module", | ||
| "scripts": { | ||
| "dev": "bunx --bun vite", | ||
| "build": "bunx --bun vite build", | ||
| "preview": "bunx --bun vite preview" | ||
| "dev:debug": "VITE_PLUGIN_FABLE_DEBUG=1 bunx --bun vite", | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added dev debug script |
||
| "build": "bunx --bun build", | ||
| "preview": "bunx --bun preview" | ||
| }, | ||
| "dependencies": { | ||
| "@fable-org/fable-library-js": "2.0.0-beta.3", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.