• Resolved Joshua

    (@joshuavalentin)


    I keep getting this error when trying to add a icon to a block.

    “Warning: Can’t perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.”

    I’m using a kit but tried all different ways.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author mlwilkerson

    (@mlwilkerson)

    Thanks for the report, @joshuavalentin.

    Could you let me know:
    – what version of WordPress you’re using?
    – what version of this plugin you’re using?
    – where you’re trying to add an icon to a block? (i.e. using the WordPress block editor to create/edit a page or post, or in the new site editor, or something else?)

    It would also be helpful to know what version of React and ReactDOM are loaded on the page where this error occurs. You may able to inspect that by going into the JavaScript console (aka Web Console) on the page where you’re seeing the error, and typing “React.version” (and Enter) to get the version of React, and “ReactDOM.version” (and Enter) to get the version of ReactDOM.

    I’ve recently confirmed the functionality of this plugin’s Icon Chooser in a clean installation of the latest version of WordPress, so I’m wondering about a potential conflict due to some other plugin or theme.

    If you’re a Font Awesome Pro subscriber, you can get additional support by emailing hello at fontawesome dot com. (It’ll still be me helping you, but we could get more specific about the situation on your site than we could in this public forum.)

    Thread Starter Joshua

    (@joshuavalentin)

    Hi Mike,

    I will be following up via mail but answering the questions asked:

    – Latest WP version 5.9.3
    – Font Awesome 4.1.1
    – Adding icons in a Gutenberg Block under the “Display more block tools” option
    – React.version 17.0.1

    All other plugins are disabled.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘JS react error’ is closed to new replies.