jup-ag / terminal

Jupiter Terminal is an open-sourced, lite version of Jupiter that provides end-to-end swap flow by linking it in your HTML.
https://terminal.jup.ag
81 stars 46 forks source link

fix: unknown tokens not loading initially #93

Closed llegoelkelo closed 2 months ago

llegoelkelo commented 3 months ago

Fixes: #91

vercel[bot] commented 3 months ago

@llegoelkelo is attempting to deploy a commit to the wowcats Team on Vercel.

A member of the Team first needs to authorize it.

worlddlckgh commented 2 months ago

It was intentional to use useRef instead of useState so we can reduce render cycles excessively. I have a PR that fixes this problem for you, by explicitly loading input mint and output mint during initial token lists initialisation, thanks for contributing though!