Title: TypeError: i.useDispatch(&#8230;) is null
Last modified: September 10, 2025

---

# TypeError: i.useDispatch(…) is null

 *  Resolved [hejhog](https://wordpress.org/support/users/hejhog/)
 * (@hejhog)
 * [9 months ago](https://wordpress.org/support/topic/typeerror-i-usedispatch-is-null/)
 * The following links below all result in the error **TypeError: i.useDispatch(…)
   is null**
   Woocomerce > CustomersWoocommerce > ExtensionsAnalytics > All menu 
   links
 * I have tried:
   Status > Tools > Woocommerce Clear TransientsStatus > Tools > WordPress
   Clear TransientsStatus > Tools > Update DatabaseStatus > Tools > Verify Database
   TablesStatus > Tools > Clear Woocommerce CacheStatus > Tools > Clear Analytics
   CacheRestarting the ServerDisabling all plugins (apart from Woocomerce and PayPal)
   This error has developed in the last 1-5 days. Any suggestions?
 *     ```wp-block-code
       WordPress EnvironmentWordPress address (URL): https://runningharedesigns.co.ukSite address (URL): https://runningharedesigns.co.ukWC Version: 10.1.2Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.Action Scheduler Version: ✔ 3.9.3Log Directory Writable: ✔WP Version: 6.8.2WP Multisite: –WP Memory Limit: 256 MBWP Debug Mode: –WP Cron: –Language: en_GBExternal object cache: ✔ Server EnvironmentServer Info: ApacheServer Architecture: Linux 6.8.0-79-generic x86_64PHP Version: 8.3.25PHP Post Max Size: 128 MBPHP Time Limit: 30PHP Max Input Vars: 1000cURL Version: 8.5.0OpenSSL/3.0.13SUHOSIN Installed: –MySQL Version: 10.11.13-MariaDB-0ubuntu0.24.04.1Max Upload Size: 128 MBDefault Timezone is UTC: ✔fsockopen/cURL: ✔SoapClient: ✔DOMDocument: ✔GZip: ✔Multibyte String: ✔Remote Post: ✔Remote Get: ✔### Active Plugins (11) ###Admin Menu Editor: by Janis Elsts – 1.14.1Code Snippets: by Code Snippets Pro – 3.7.0GTG Product Feed for Shopping: by WPOPAL – 1.3.0XML Sitemap Generator for Google: by Auctollo – 4.1.21Insert PHP Code Snippet: by xyzscripts.com – 1.4.3Real Media Library (Free): by devowl.io – 4.22.54Redis Object Cache: by Till Krüss – 2.6.5WooCommerce PayPal Payments: by PayPal – 3.1.0WooCommerce: by Automattic – 10.1.2WPForms Lite: by WPForms – 1.9.7.3Smart Coupons For WooCommerce Coupons: by WebToffee – 2.2.3
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [LovingBro (woo-hc)](https://wordpress.org/support/users/lovingbro/)
 * (@lovingbro)
 * [9 months ago](https://wordpress.org/support/topic/typeerror-i-usedispatch-is-null/#post-18636557)
 * Hi [@hejhog](https://wordpress.org/support/users/hejhog/),
 * I understand how disruptive it is when key WooCommerce admin screens throw a 
   TypeError like i.useDispatch(…) is null, especially since it affects Customers,
   Extensions, and Analytics. You’ve already been very thorough with your troubleshooting
   steps, which helps narrow things down.
 * From the details you shared, this error often points to a JavaScript conflict
   in the WooCommerce Admin package. It can happen after recent updates, sometimes
   in combination with object caching or plugin conflicts. Let’s try these next 
   steps:
    1. **Temporarily disable object caching** — since you’re using Redis Object Cache,
       try turning it off and then reloading the affected admin pages. This will help
       rule out stale cached assets causing the error.
    2. **Check for browser console errors** — you already saw the TypeError, but could
       you also open your browser’s developer console, refresh the page, and share 
       a screenshot of all the red error messages via [https://snipboard.io](https://snipboard.io)?
       That will confirm if it’s limited to WooCommerce scripts or something broader.
    3. **Reinstall WooCommerce Admin assets** — even though WooCommerce is active, 
       sometimes the JavaScript assets get corrupted. You can delete and reinstall 
       the WooCommerce plugin from Plugins → Add New, without losing your data.
    4. **Conflict confirmation** — you’ve disabled other plugins, which is great, but
       did you also try switching to a default theme like Storefront or Twenty Twenty-
       Four? That can confirm if the issue is theme-related.
    5. **System Status Report** — please share your full WooCommerce System Status 
       Report through [https://pastebin.com](https://pastebin.com) or [https://gist.github.com](https://gist.github.com)
       so we can review environment details more closely.
 * Once we rule out caching and asset corruption, we’ll have a clearer picture of
   whether this is a local conflict or something that needs escalation.
 * Feel free to let us know how it goes.
 *  Thread Starter [hejhog](https://wordpress.org/support/users/hejhog/)
 * (@hejhog)
 * [9 months ago](https://wordpress.org/support/topic/typeerror-i-usedispatch-is-null/#post-18636588)
 * You’re a star. Number 2 got me thinking. I was seeing the issue across multiple
   devices therefore it did not occur to me it was a browser issue. However, all
   devices run Firefox with the same set of extensions….
 * Running Firefox in safe mode cured the issue therefore an updated Firefox extension
   is to blame.
 * In the future I will **ALWAYS CHECK THE BROWSER FIRST!!!!!**
 *  [LovingBro (woo-hc)](https://wordpress.org/support/users/lovingbro/)
 * (@lovingbro)
 * [9 months ago](https://wordpress.org/support/topic/typeerror-i-usedispatch-is-null/#post-18636611)
 * Hi [@hejhog](https://wordpress.org/support/users/hejhog/),
 * That’s fantastic to hear! I’m glad you tracked it down to the browser extensions
   in Firefox, it’s easy to overlook when the issue appears across multiple devices.
   Your note is a great reminder that browser-level conflicts can mimic site-side
   problems.
 * Thanks for sharing your findings as well, it will surely help others facing a
   similar issue. If WooCommerce has been useful for your store and you’re happy
   with the support received, we’d truly appreciate it if you could leave us a quick
   5-star review here: [https://wordpress.org/support/plugin/woocommerce/reviews/#new-post](https://wordpress.org/support/plugin/woocommerce/reviews/#new-post)
 * Feel free to open a new forum topic if you run into any other problem.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘TypeError: i.useDispatch(…) is null’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [LovingBro (woo-hc)](https://wordpress.org/support/users/lovingbro/)
 * Last activity: [9 months ago](https://wordpress.org/support/topic/typeerror-i-usedispatch-is-null/#post-18636611)
 * Status: resolved