Skip to content

Commit

Permalink
fix: main
Browse files Browse the repository at this point in the history
  • Loading branch information
mbret committed Nov 26, 2023
1 parent f3e32e4 commit d95f693
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable new-cap */
import React, { memo, useState } from "react"
import { memo, useState } from "react"
import ReactDOM from "react-dom/client"
import {
QueryClient,
Expand All @@ -24,7 +24,7 @@ const myState = signal({
default: 2
})

const Mutation = memo(({ onClick }: { onClick: () => void }) => {
const Mutation = memo((_: { onClick: () => void }) => {
const result = useMutation({
mutationFn: async ({ res, timeout }: { res: number; timeout: number }) => {
return await new Promise<number>((resolve) =>
Expand Down Expand Up @@ -57,7 +57,7 @@ const Mutation = memo(({ onClick }: { onClick: () => void }) => {

console.log("mutation", result)
console.log("rc", result2)
// console.log("observe", observeMut)
console.log("observe", observeMut)

return (
<div style={{ display: "flex", border: "1px solid red" }}>
Expand Down

0 comments on commit d95f693

Please sign in to comment.