Skip to content

Commit f6f23f2

Browse files
committed
problem has migrated to the errorcontainer as a whole. looking into that now. added more console logs. Planning to reassign the linkFiber on line 23 of index.ts in backend to use LinkFiber instead of linkFiberInitialization
1 parent f2c0279 commit f6f23f2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/app/containers/ErrorContainer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function ErrorContainer(): JSX.Element {
2828
'currentTab: ',
2929
currentTab,
3030
'currentTitle: ',
31+
currentTitle,
3132
);
3233
// function that launches the main app
3334
function launch(): void {
@@ -48,6 +49,7 @@ function ErrorContainer(): JSX.Element {
4849

4950
// hook that sets timer while waiting for a snapshot from the background script, resets if the tab changes/reloads
5051
useEffect(() => {
52+
if (tabs[currentTab]) console.log('ErrorContainer useEffect fired, ', tabs[currentTab].status);
5153
// We declare a function
5254
function setLoadingArray(i: number, value: boolean) {
5355
// 'setLoadingArray' checks an element in our 'loadingArray' local state and compares it with passed in boolean argument. If they don't match, we update our local state replacing the selected element with the boolean argument

src/app/slices/mainSlice.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export const mainSlice = createSlice({
103103
tabs[currentTab] || {};
104104
const { payload } = action;
105105

106+
console.log('mainSlice initialConnect reducer fired, ', payload);
106107
Object.keys(payload).forEach((tab) => {
107108
// check if tab exists in memory
108109
// add new tab
@@ -134,7 +135,7 @@ export const mainSlice = createSlice({
134135
// If false: Reactime is 'Unlocked', and navigating to another tab will update the Redux state's currentTab, which will trigger Reactime to try to run on that new tab.
135136
setTab: (state, action) => {
136137
const { tabs, currentTab } = state;
137-
const { mode } = tabs[currentTab] || { paused: true };
138+
const { mode } = tabs[currentTab] || {};
138139
console.log('mainSlice setTab, mode: ', JSON.stringify(mode), 'payload: ', action.payload);
139140
if (!mode?.paused) {
140141
if (typeof action.payload === 'number') {

0 commit comments

Comments
 (0)