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.
Upgrading React
Section titled “Upgrading React”Always take a database backup (php vendor/bin/wire db:backup) before upgrading in production.
-
Update the package and refresh modules so ProcessWire runs
___upgrade()automatically:Terminal window composer update trk/processwire-reactphp vendor/bin/wire module:refresh
- Open Setup -> Upgrades (with
ProcessWireUpgrade) or navigate to Modules -> New and use Add Module from Directory (React), Add Module from URL, or Add Module from Upload (ZIP archive) to replace the module files. - Click Modules -> Refresh so ProcessWire detects the new version and executes
___upgrade()automatically.
- Replace
site/modules/React/with the new release directory. - Open Modules -> Refresh in the ProcessWire Admin (or run
php vendor/bin/wire module:refresh) so___upgrade()executes cleanly.
Uninstall Steps
Section titled “Uninstall Steps”-
Uninstall any downstream modules that depend on
ReactCheck the Required By list under Modules > Configure > React and uninstall listed modules first.
-
Uninstall
ProcessReactWorkspace(if installed)Terminal window php vendor/bin/wire module:uninstall ProcessReactWorkspace -
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. -
Uninstall
ReactTerminal window php vendor/bin/wire module:uninstall ReactProcessWire uninstalls
Reactand its 15 companion modules, andReact::___uninstall()cleans up module caches cleanly. -
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)