跳至主要內容
alien-signals为啥可以打败proxy🚀🚀🚀

上篇文章主要是对尤雨溪在 2025 vue.js nation 大会的分享内容总结。分享中提到 vue3.6 将会使用 alien-signals 替换 proxy 响应式系统。

今天我们仔细盘盘 alien-signals

alien-signals 基本用法

alien-signals 是一个非常轻量级的响应式信号系统库,提供了标准的响应式三件套:signalcomputedeffect


萌萌哒草头将军大约 10 分钟前端Vue
2025年了,令人唏嘘的Angular,现在怎么样了🚀🚀🚀

迅速崛起和快速退出

时间回到 2014 年,此时的 Angular 1.x 习得了多种武林秘籍,左手降龙十八掌、右手六脉神剑,哦不,左手双向数据绑定、右手依赖注入、上能模块化开发、下有模板引擎前端路由, 背后还有Google这个风头无两的带头大哥做技术背书,可以说集万千功能和宠爱于一身,妥妥的主角光环。

而此时的江湖,B端开发正尝到了 SPA 的甜头,积极的从传统的 MVC 开发模式转变为更为方便快捷的单页面应用开发模式,


萌萌哒草头将军大约 6 分钟前端Angular
🚀🚀🚀Vapor Mode发布前,你应该知道的一些事情!

前言

Vue3Vapor Mode概念不知不觉已经提出来一年了,可以说是吊足了coder们的胃口,我去年的一篇莫名其妙成为爆款的文章🎉 尤雨溪为什么要推出 Vapor Mode🎉中,我直观的展示了细粒度更新dom的优点,让大家历历在目!

新的消息,2025 年 1 月 29 日至 30 日,将会举办Vue.js Nation Conference,详情你可以看这里:https://vuejsnation.com/


萌萌哒草头将军大约 4 分钟前端JavaScript
vuePress-thmee-hope2部署服务器教程

前言

这篇文章主要是完善上篇文章部署服务器的部分,由于最近刚买了服务器,所以才有了今天的内容。废话不多说,下面是正文。

文章同步在公众号:萌萌哒草头将军,欢迎关注

准备工作

1.生成密钥对

在服务器或者其他电脑生成一堆ssh密钥对,命令如下:


萌萌哒草头将军大约 4 分钟前端Vue
🚀超详细解读vue3.2源码——组件渲染流程

欢迎关注我的公众号:萌萌哒草头将军

入口->全局初始化->生成 vnode->挂载

入口函数

export const createApp = (...args) => {
  // 1.创建实例
  const app = ensureRenderer().createApp(...args);

  // 2. 重写实例的 mount 方法
  const { mount } = app;
  app.mount = (containerOrSelector) => {
    const container = normalizeContainer(containerOrSelector);
    if (!container) return;

    const component = app._component;
    if (!isFunction(component) && !component.render && !component.template) {
      // __UNSAFE__
      // Reason: potential execution of JS expressions in in-DOM template.
      // The user must make sure the in-DOM template is trusted. If it's
      // rendered by the server, the template should not contain any user data.
      component.template = container.innerHTML;
      // 2.x compat check
      if (__COMPAT__ && __DEV__) {
        for (let i = 0; i < container.attributes.length; i++) {
          const attr = container.attributes[i];
          if (attr.name !== "v-cloak" && /^(v-|:|@)/.test(attr.name)) {
            compatUtils.warnDeprecation(
              DeprecationTypes.GLOBAL_MOUNT_CONTAINER,
              null
            );
            break;
          }
        }
      }
    }

    // clear content before mounting
    container.innerHTML = "";
    const proxy = mount(container, false, resolveRootNamespace(container));
    if (container instanceof Element) {
      container.removeAttribute("v-cloak");
      container.setAttribute("data-v-app", "");
    }
    return proxy;
  };

  return app;
};

萌萌哒草头将军大约 7 分钟前端Vue
🎉干货满满,React设计原理(四):藏在源码里的传呼机,Dispatch机制和事件系统🎉

文章同步更新在公众号:萌萌哒草头将军,欢迎关注

好久不见,该系列已经更新了三篇了,上文介绍了 React 是如何通过 Lane 模型判断更新任务的优先级的,视野聚焦于 Lane 模型的原理,今天我们详细看看 Lane 模型工作前发生了啥。

💡 相关阅读


萌萌哒草头将军大约 8 分钟前端JavaScriptReact
2
3
4
5