Skip to content

Upgrading & Uninstalling

React creates no custom SQL tables. All user preferences and presence files live inside site/assets/cache/React/, and standard ProcessWire field data remains untouched in ProcessWire’s own tables.

Always take a database backup (php vendor/bin/wire db:backup) before upgrading in production.

  1. Update the package and refresh modules so ProcessWire runs ___upgrade() automatically:

    Terminal window
    composer update trk/processwire-react
    php vendor/bin/wire module:refresh
  1. Uninstall any downstream modules that depend on React

    Check the Required By list under Modules > Configure > React and uninstall listed modules first.

  2. Uninstall ProcessReactWorkspace (if installed)

    Terminal window
    php vendor/bin/wire module:uninstall ProcessReactWorkspace
  3. Revert any fields explicitly assigned to React Inputfields

    If you manually switched a Page field’s Inputfield type to InputfieldReactImage, InputfieldReactFile, InputfieldTiptap, or another companion Inputfield under Setup > Fields > Details, switch it back to a core ProcessWire Inputfield before uninstalling.

  4. Uninstall React

    Terminal window
    php vendor/bin/wire module:uninstall React

    ProcessWire uninstalls React and its 15 companion modules, and React::___uninstall() cleans up module caches cleanly.

  5. Remove the Composer package (optional)

    Terminal window
    composer remove trk/processwire-react

Downstream Module Registry Cleanup (React::forget*)

Section titled “Downstream Module Registry Cleanup (React::forget*)”

When a downstream module that registered workspaces, widgets, providers, or viewport modes is uninstalled (while React stays installed), its ___uninstall() method should call the matching cleanup helpers so WorkspacePreferenceStore reconciles automatically:

  • React::forgetSharedWorkspace($id)
  • React::forgetSharedWidget($id)
  • React::forgetSharedViewportMode($mode)
  • React::forgetDeferredRegistrations($moduleClass)

Next steps