Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with links #252

Open
garyanikin opened this issue Oct 25, 2019 · 0 comments
Open

Bug with links #252

garyanikin opened this issue Oct 25, 2019 · 0 comments

Comments

@garyanikin
Copy link

garyanikin commented Oct 25, 2019

I'm trying to dynamically render new links with this code:

const renderLoop = setInterval(() => {
    renderer.pause();

    setTimeout(() => {
        // Render new transactions
        for (let i = 0; i < batch; i++) {
            const transaction = getTransaction()
            addLink(transaction.sender, transaction.recipient);
            if (currentTransaction < TRANSACTIONS.length) {
                nextTransaction()
            } else {
                clearInterval(renderLoop)
                return;
            }
        }
        renderer.resume();
    }, 0)
    
}, 2000)

And after a couple renders there appear a "ghost" links not connected to any node and with static positioning (they not animated like other nodes)
Screenshot 2019-10-25 at 17 09 19

Please, help me to figure out why it can happens?

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

No branches or pull requests

1 participant