iliaoliao 最近的时间轴更新
iliaoliao's repos on GitHub
TypeScript · 303 人关注
v2ex
V2EX 好看的第三方客户端,原生 App,支持夜间模式。
TypeScript · 146 人关注
react-query-kit
🕊️ A toolkit for ReactQuery that make ReactQuery hooks reusable and typesafe
TypeScript · 17 人关注
translate-ext
TypeScript · 7 人关注
vu-query
🌈 Composables api for fetching, caching and updating asynchronous data in Vue 3
JavaScript · 2 人关注
vu-error-boundary
🌈 Simple reusable Vue3 error boundary component
TypeScript · 0 人关注
ant-design-mobile
Essential UI blocks for building mobile web apps.
TypeScript · 0 人关注
examination
TypeScript · 0 人关注
jotai
👻 Primitive and flexible state management for React
0 人关注
liaoliao666
TypeScript · 0 人关注
query
🤖 Powerful asynchronous state management, server-state utilities and data fetching for TS/JS, React, Solid, Svelte and Vue.
TypeScript · 0 人关注
vue-next
Repo for Vue 3
TypeScript · 0 人关注
vueuse
🧰 Collection of essential Vue Composition Utilities for Vue 2 and 3
iliaoliao
ONLINE

iliaoliao

Be led by your guiding principles, not a slogan...
🏢  lalamove / frontend
V2EX 第 372922 号会员,加入于 2018-12-26 10:01:35 +08:00
今日活跃度排名 4519
[V2Fun] V2EX 第三方 app,现已支持 iPad 版
  •  7   
    分享创造  •  iliaoliao  •  15 天前  •  最后回复来自 iliaoliao
    129
    Test 777777
    沙盒  •  iliaoliao  •  78 天前  •  最后回复来自 iliaoliao
    1
    test 666
    沙盒  •  iliaoliao  •  112 天前
    test55555
    沙盒  •  iliaoliao  •  112 天前
    收 4 个网易云会员, 40 一个
    二手交易  •  iliaoliao  •  117 天前  •  最后回复来自 lzk1546991801
    6
    test issue
    沙盒  •  iliaoliao  •  152 天前  •  最后回复来自 iliaoliao
    3
    测试发帖 4444dads
    沙盒  •  iliaoliao  •  152 天前
    测试发帖 3333
    沙盒  •  iliaoliao  •  153 天前  •  最后回复来自 iliaoliao
    1
    测试发帖 2222
    沙盒  •  iliaoliao  •  155 天前
    iliaoliao 最近回复了
    8 天前
    回复了 cnlaok999 创建的主题 V2EX V2FUN 挂了吗?从昨天开始就 403 了
    换个节点再试试
    15 天前
    回复了 iliaoliao 创建的主题 分享创造 [V2Fun] V2EX 第三方 app,现已支持 iPad 版
    @stormwindcity 昨天刷到那帖子了,猜到了😂
    27 天前
    回复了 iliaoliao 创建的主题 分享创造 [V2Fun] V2EX 第三方 app,现已支持 iPad 版
    @stormwindcity 兄弟别刷了,快变成恐怖故事了
    31 天前
    回复了 iliaoliao 创建的主题 分享创造 [V2Fun] V2EX 第三方 app,现已支持 iPad 版
    @stormwindcity
    我啥都没改啊😂
    39 天前
    回复了 iliaoliao 创建的主题 分享创造 [V2Fun] V2EX 第三方 app,现已支持 iPad 版
    @stormwindcity 那就是你账号的浏览记录了,你可以看看浏览器里 V2EX 的右侧栏下面,是不是也有着一样的记录
    40 天前
    回复了 iliaoliao 创建的主题 分享创造 [V2Fun] V2EX 第三方 app,现已支持 iPad 版
    @stormwindcity
    我理了下代码的逻辑应该是没啥问题,而且除了你没有其他人反馈过这个问题。或许是你搜索时的浏览记录?
    51 天前
    回复了 Outshine 创建的主题 Next.js 关于 next.js 13 请求封装的最佳实践的疑问
    @Outshine
    GitHub 文档上都有示例项目的,例如这个 nextjs13 的 https://codesandbox.io/s/example-react-query-kit-nextjs-uldl88
    51 天前
    回复了 Outshine 创建的主题 Next.js 关于 next.js 13 请求封装的最佳实践的疑问
    首先你需要明白哪些请求是幂等的,增删改查中查是幂等的所以使用 `useQuery` 这类带有数据缓存的 hook 是最合适的,而增删改等非幂等操作则使用带有突变操作的 hook `useMutation`。
    我推荐 react-query 和我开源的 react-query-kit 结合使用。可以做到在 getServerSideProps 和组件中的写法是一致的,几乎没有什么心智负担,顺便把写法贴在下面

    ```js
    import { createQuery } from 'react-query-kit'

    const usePost = createQuery({
    primaryKey: '/posts',
    queryFn: ({ queryKey: [primaryKey, variables] }) => {
    // primaryKey equals to '/posts'
    return fetch(`${primaryKey}/${variables.id}`).then(res => res.json())
    },
    })

    const variables = { id: 1 }

    export default function Page() {
    const { data } = usePost({ variables, suspense: true })

    return (
    <div>
    <div>{data?.title}</div>
    <div>{data?.content}</div>
    </div>
    )
    }

    // nextjs example
    export async function getStaticProps() {
    const queryClient = new QueryClient()

    await queryClient.prefetchQuery({
    queryKey: usePost.getKey(variables),
    queryFn: usePost.queryFn
    })

    return {
    props: {
    dehydratedState: dehydrate(queryClient),
    },
    }
    }
    ```
    关于   ·   帮助文档   ·   博客   ·   nftychat   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   897 人在线   最高记录 5634   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 19:35 · PVG 03:35 · LAX 12:35 · JFK 15:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.