Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-buster-slim
FROM node:20-bookworm-slim

# This installs the necessary libs to make the bundled version of Chromium that Pupppeteer installs work
RUN apt-get update \
Expand All @@ -12,7 +12,7 @@ RUN apt-get update \
&& mv ./azcopy /usr/bin/ \
&& rm -rf /var/lib/apt/lists/*

ENV WORK /opt/publisher
ENV WORK=/opt/publisher
# ENV NODE_ENV production # Cannot use until devdependency list is fixed in package.json

# Create app directory
Expand Down
4 changes: 3 additions & 1 deletion src/components/routeMap/routeMapContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,11 @@ const hoc = compose(
);
alphaChannelMatrix.initialize((alphaChannelByteArray) => {
this.props.onData(alphaChannelByteArray);
renderQueue.remove(this);
});
},
componentDidUpdate() {
renderQueue.remove(this);
},
}),
branch(
(props) => !props.alphaChannel,
Expand Down
10 changes: 5 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import React from 'react';
import { render } from 'react-dom';
import * as ReactDOMClient from 'react-dom/client';

import App from 'components/app';
import 'styles/base.css';

const root = document.body.appendChild(document.createElement('div'));

render(<App />, root);
const rootContainer = document.body.appendChild(document.createElement('div'));
const root = ReactDOMClient.createRoot(rootContainer);
root.render(<App />);

if (module.hot) {
module.hot.accept('components/app', () => {
const NextApp = require('components/app').default; // eslint-disable-line
render(<NextApp />, root);
root.render(<NextApp />, root);
});
}
Loading