0.1.3 #4

Merged
Thilawyn merged 90 commits from next into master 2025-08-23 03:07:28 +02:00
Showing only changes of commit fe68445fa9 - Show all commits

View File

@@ -25,12 +25,16 @@ const RouteComponent = Component.makeUntraced(function* RouteComponent() {
Component.withRuntime(runtime.context)
)
class SubComponent extends Component.makeUntraced(function* SubComponent() {
const SubComponent = Component.makeUntraced(function* SubComponent() {
const id = yield* makeUuid4.pipe(Effect.provide(GetRandomValues.CryptoRandom))
return <Text>{id}</Text>
}) {}
})
class MemoizedSubComponent extends Memo.memo(SubComponent) {}
console.log(MemoizedSubComponent.prototype)
// console.log(Object.getPrototypeOf(SubComponent))
// console.log(Object.getPrototypeOf(MemoizedSubComponent))
export const Route = createFileRoute("/dev/memo")({
component: RouteComponent,