Frontend Development 11 min read
DataFlow Upgrade in DataWind Project
DataWind upgraded its data flow from dva to a new solution to resolve module coupling issues and enhance development experience.
ByteFE
ByteFE
背景
DataWind 使用 umi 脚手架,所以数据流一直绑在 dva 方案。由于 dva 本身语法较为陈旧,加上 DataWind 使用的比较粗旷,导致项目拆包时遇到模块间紧紧咬合的问题,牵一发而动全身。
上个双月正好在做模块架构升级,正好把数据流一并升级到新方案,同时解决可视化查询模块内、与其它模块间数据流使用不规范问题,也带来更好的开发体验。
问题
繁琐的初始化模版
排除掉具体内容,初始化数据流的模版代码非常繁琐:
Written by
ByteFE
Cutting‑edge tech, article sharing, and practical insights from the ByteDance frontend team.
0 followers
Reader feedback
How this landed with the community
Rate this article
Was this worth your time?
Discussion
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
