Skip to content

Commit b7de7a6

Browse files
committed
fix issue with homepage reloading nonstop
1 parent 57dae95 commit b7de7a6

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/layouts/LandingPageLayout.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export {
106106
/* ---Link to Playground--- */
107107
<div>
108108
<ReactRouter.Link.String
109-
to={`/try?code=${encodeURIComponent(example.res)}}`}
109+
to={`/try?code=${encodeURIComponent(example.res)}`}
110110
className="captions md:px-0 border-b border-gray-40 hover:border-gray-60 text-gray-60"
111111
>
112112
{React.string("Edit this example in Playground")}

vite.config.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ const excludedFiles = ["lib/**", "**/*.res", "**/*.resi"];
1313
export default defineConfig({
1414
plugins: [
1515
tailwindcss(),
16+
reactRouter(),
1617
react({
17-
reactRefreshHost: "",
1818
include: ["**/*.mjs"],
1919
exclude: excludedFiles,
2020
}),
21-
reactRouter(),
2221
// this is to make it so babel doesn't break when trying to acess process.env in the client
2322
env({ prefix: "PUBLIC_" }),
2423
// adds dev scripts for browser devtools

0 commit comments

Comments
 (0)