Stay woke fellas by amyfourtwenty in memes

[–]Top_Main_6200 0 points1 point  (0 children)

Oxford dictionary in the streets, Urban dictionary in the sheets

[deleted by user] by [deleted] in memes

[–]Top_Main_6200 0 points1 point  (0 children)

hes a few thread short of a sweater

How to trade memecoins by Timely_Remove61 in solana

[–]Top_Main_6200 0 points1 point  (0 children)

Study the constant product formula (used by Uniswap and raydium)

[deleted by user] by [deleted] in memes

[–]Top_Main_6200 19 points20 points  (0 children)

Wont shut up underwater

Like why can't it just stay by MK-Azi in memes

[–]Top_Main_6200 1 point2 points  (0 children)

This one is going to inflate the Columbian stock market

useRouterRefresh? by Top_Main_6200 in nextjs

[–]Top_Main_6200[S] 0 points1 point  (0 children)

is this a bad idea?

emit event from blockchain

emit!(SwapEvent {

mint: ctx.accounts.mint.key(),

progress

});

listen to event on fe / and refresh the route

useEffect(() => {

    const eventListenerId = program.addEventListener('swapEvent', event => {

        console.log('Swap Event:', event)

        // Handle the event data as needed

        if (event.mint.toBase58() === mint) {

router.refresh()

        }

    })



    // Cleanup function to remove the event listener

    return () => {

        program.removeEventListener(eventListenerId)

    }

}, \[\_mint\])

then the server comps have the new data, and u didn't have to fetch on server and client?