信鸽
信鸽
这有一个简单的实现,没有完整测试,不保证100%可用,也不提供售后 ```ts const solidJsHook = { create: (data) => createSignal(data), export: (states) => states[0], dehydrate: (state: any) => state(), update: (newVal, states) => { Object.keys(newVal).forEach((key) => { states[key][1](newVal[key]); }); },...
I think it's because of this https://github.com/ryansolid/dom-expressions/blob/38ad815b0c610b936ad140ed5c230afe4419d3b7/packages/dom-expressions/src/client.js#L40
> Could probably use a simple hash such as a xxhash32(filename), but otherwise this is fine. ~~Hash functions are usually irreversible.~~ ~~if use encryption algorithms (such as AES) or compression...
I have come up with a solution that can use hash algorithm,` HandleServerFunction does not require decoding. I need some time to verify
Now,only Encode `extractedFilename` with `encodeURIComponent`. In addition, I found that `extractedFilename` is not used in this process, 🤔 maybe it can be removed?