4lve

Results 16 comments of 4lve

Yea customs hooks would be good, but you would need to be able to get the message id and rerender the component manually

Maybe add a way to save important message states and load them again. You could also allow the component to take a message and recover the state that way

Anyone else have any suggestions on how this can be done? Maybe like storing it in a database?

You could just have an async func that returns the input values or undefiend if nore, and for the building of the form you could use non-reactive react

![image](https://github.com/teoxoy/lua-in-js/assets/72332750/ad7f2a38-9da8-4480-bc18-8cf23aea65ee) ![image](https://github.com/teoxoy/lua-in-js/assets/72332750/6766f862-e590-4679-a81c-32f7abc3df4a) ![image](https://github.com/teoxoy/lua-in-js/assets/72332750/a85e0870-5279-4354-9f8a-4f7c15001e3f) Managed to implement promises

Adding await to the call function is a better solution ```js const call = async (f, ...args) => { if (f instanceof Function) return ensureArray(await f(...args)); const mm = f...

Found a temp fix, using ```typescript (umi.rpc as any).connection as Connection ``` Don't use this in production code tho as in the future the rpc is going to be rewritten.

I couldn't use an BTreeSet with the kinobi javascript renderer, I fixed my issue though by just changing the anchor progam. Though it could be nice to support it for...

I know the new token program uses key-value pairs for their metadata, I could look into how they did it

I don't have the exact idl on me rn, but it looks something like this. Note this isn't even supported by the anchor cli gen. `"type":{"defined":"BTreeMap"}`