File tree Expand file tree Collapse file tree 5 files changed +5
-12
lines changed
packages/overmind-devtools-client/src Expand file tree Collapse file tree 5 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ const Action: React.FunctionComponent<Props> = ({
2323 const state = useAppState ( )
2424 const operatorsByPath = getOperatorsByPath ( action )
2525
26- console . log ( 'WUT?' , inline , action )
27-
2826 function renderOperators ( operatorsByPath : OperatorsByPath ) {
2927 return operatorsByPath . map ( ( operatorByPath , index ) => {
3028 const flushReference =
@@ -42,7 +40,9 @@ const Action: React.FunctionComponent<Props> = ({
4240 } }
4341 >
4442 < ActionOperator
45- parentPath = { parentPath || action . path }
43+ parentPath = {
44+ parentPath ? parentPath . concat ( action . path ) : action . path
45+ }
4646 operator = { operatorByPath . operator }
4747 flush = { flush }
4848 value = { operatorByPath . value }
Original file line number Diff line number Diff line change @@ -33,8 +33,6 @@ const ActionOperator: React.FunctionComponent<Props> = ({
3333 const state = useAppState ( )
3434 const delimiter = state . currentApp . delimiter
3535
36- console . log ( 'OPERATOR' , operator )
37-
3836 return (
3937 < div className = { actionStyles . pipe } >
4038 < div className = { styles . operator } >
Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ import { useAppState } from '../../overmind'
2323const History : React . FunctionComponent = ( ) => {
2424 const state = useAppState ( )
2525
26- console . log ( 'WTF' , state . history )
27-
2826 return (
2927 < div className = { styles . wrapper } >
3028 { state . history . map ( ( record , index ) => {
@@ -37,7 +35,7 @@ const History: React.FunctionComponent = () => {
3735 < div className = { styles . label } >
3836 < FaDatabase />
3937 </ div >
40- < div className = { styles . effectPath } > N/A </ div >
38+ < div className = { styles . effectPath } > no action </ div >
4139 < div className = { styles . mutationType } > set</ div >
4240 < div className = { styles . mutationPath } >
4341 { stateRecord . data . path . join ( '.' ) }
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { Provider } from 'overmind-react'
55import { createRoot } from 'react-dom/client'
66
77import Devtools from './components/Devtools'
8- import { config , useActions , useAppState } from './overmind'
8+ import { config } from './overmind'
99import { css } from './theme'
1010
1111injectGlobal `
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments