伊撒尔
伊撒尔
It seems fre diff bug


This is my new discovery, which can implement a diving model similar to React fiber in the logic of synchronous recursion. According to my experience, I think except for time...
有些问题需要请教::>_
Implement hydrate in linked list. 1. Use `document.createTreeWalker` for creating an iterator. 2. Iterator and linked list keep the same traversal mode. 3. Reuse DOM as much as possible.
之前停更的原因:自定义组件递归的一些坑 我给微信小程序社区提了需求,要求支持递归,然后他们没能采纳 然后发布了他们的类似思路的框架:kbone 仍然没能突破限制,这很绝望 这个问题暂时来说是无解的  他们的方案是,限制死了一个层级数,然后超过这个层级数会包一层 自定义组件 这就好像是 fard 第一个版本和第二个版本的结合体 说实话,仍然不是个好的方案,因为还是有限制的 我仍然期待着他们支持递归
由于 fre 的 useEffect 是发生在 dom 操作后,而小程序是没有 dom 操作的 从语意上讲,也不适合使用 effect 关键词 但是 fard 的每一个节点都是一个 fard 组件,小程序的组件是有生命周期的,它可以用来替代 useEffect 小程序自定义组件的生命周期主要有两个方法 ```js lifetimes: { attached: function() { // 在组件实例进入页面节点树时执行 }, detached: function()...
1. 排除 webapck-dev-server 的干扰 ```js devServer: { headers: { 'Access-Control-Allow-Origin': '*' }, // 支持跨域 contentBase: path.join(__dirname, 'dist'), compress: true, port: 3002, historyApiFallback: true, // history 路由 hot: true, inline: false...