[go: nahoru, domu]

Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

android 4.4.2 sdcard js file changed. but the render is the same with before. #2920

Open
zhaoqigang opened this issue Sep 18, 2019 · 5 comments
Labels

Comments

@zhaoqigang
Copy link

Android (4.4.2) render sdcard js file, when it is updated but render is also the before. where weex version is ( 0.20.3.0-beta and 0.24.0+).

Describe the bug

android 4.4.2
render sdcard js file, when it is updated but render is also the before.
加载本地js 文件 , 当js文件变化时,weex 界面未更新。render success 但是现实的还是原来的js。
当 执行 adb shell pm clear 包名的之后 又显示正常,之后更新就是文件就正常。 怀疑是不是 weex 渲染 js 有缓存 ?

To Reproduce

Environment

Device:Android Hisilicon S-Box8L44C
OS :Android 4.4.2

Expected behavior

希望当 js 内容变化时 界面也会 渲染

Screenshots

Additional context

@zhaoqigang zhaoqigang added the Bug label Sep 18, 2019
@zhaoqigang zhaoqigang changed the title [Android][iOS][Dev-tool] Unexpected behavior when xx where weex version is 0.aa.bb.cc android 4.4.2 Android Hisilicon S-Box8L44C sdcard js file Sep 18, 2019
@zhaoqigang zhaoqigang changed the title android 4.4.2 Android Hisilicon S-Box8L44C sdcard js file android 4.4.2 sdcard js file changed. but the render is the same with before. Sep 18, 2019
@zhaoqigang
Copy link
Author

当我 删除 data/data/包名 /databases/ WXStorage 之后 也正常了 但是我用数据库工具 打开WXStorage 都是我自己设置的值

@zhaoqigang
Copy link
Author

1 有问题的时候 把 data/data/包名 /databases/ WXStorage 数据库 pull 出来 查看数据库 没发现 异常的值 都是我设置的值 2 删除 盒子的 data/data/包名 /databases/ WXStorage 数据库 正常刷新界面 。 3 把之前 pull 出来的 WXStorage push 到 data/data/包名 /databases/ 又像原来那样 不刷新了,显示的 还是之前错误的界面 。

@zshshr
Copy link
Contributor
zshshr commented Sep 23, 2019

Weex will not actively cache the js bundle , please check it again

@zhaoqigang
Copy link
Author

Weex will not actively cache the js bundle , please check it again
把之前 pull 出来的 WXStorage push 到 data/data/包名 /databases/ 又像原来那样 不刷新了,显示的 还是之前错误的界面 。
真的出现了 是必现的 (但是清除了这个WXStorage 之后 之后就正常 了 再更新js 也正常了)

@YorkShen
Copy link
Contributor

Unless you use a custom network library, Weex will not cache JS file.

Maybe there is something wrong in WXStorage, I am not sure about that.

If this still bothers you and you find a solution, you could give us a PR if you can, I am very happy to talk with you implemenation detail or review you PR in mailing list.

I have a busy schedule and I can't read Github issue every day, but I check mailing list every day. I am sorry if this bothers you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants