-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
using new ObjectId() breaks fresh island #393
Comments
also breaks fresh if I call a function from a collection in island like this |
can you try using git directly? |
yes, it stills breaks here is the whole island import { signal, useSignal } from "@preact/signals";
// import { Cars } from "../model/car.model.ts";
import { ObjectId } from "https://raw.githubusercontent.com/denodrivers/mongo/a49057d/mod.ts";
// const text = signal("");
// import { ObjectId } from "https://deno.land/x/[email protected]/mod.ts";
export default function TextInput() {
const text = useSignal("");
// Cars.find().toArray().then((cars) => {
// console.log(cars);
// });
console.log(new ObjectId().toString());
return (
<div>
<input
type="text"
value={text.value}
onInput={(event) => {
console.log(event.target);
text.value = event.target.value;
}}
/>
{text}
</div>
);
} |
I'm guessing you ran into a Maybe take a look at Fresh Docs Data Fetching |
web_bson is web based it should not use deno api? so im wondering from where the issue is coming from |
when I add this to the island
console.log(new ObjectId().toString());
it breaks every islands and signals
but the one from web_bson doesn't
The text was updated successfully, but these errors were encountered: