Skip to content

Commit

Permalink
Reload app page after every navigation (#920)
Browse files Browse the repository at this point in the history
* useEffect to handle rendered message behvaior

* app reloads everytime instead of cache implementation
  • Loading branch information
asimregmi authored Dec 19, 2023
1 parent 272c632 commit dc6d0c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 2 additions & 0 deletions client/src/components/Applications/AppForm/AppForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ AppInfo.propTypes = {

export const AppSchemaForm = ({ app }) => {
const dispatch = useDispatch();

useEffect(() => {
dispatch({ type: 'GET_SYSTEM_MONITOR' });
}, [dispatch]);
Expand Down Expand Up @@ -387,6 +388,7 @@ export const AppSchemaForm = ({ app }) => {
</SectionMessage>
</div>
)}

{jobSubmission.response && (
<>
{jobSubmission.error ? (
Expand Down
8 changes: 0 additions & 8 deletions client/src/redux/sagas/apps.sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,7 @@ const getCurrentApp = (state) => state.app;

function* getApp(action) {
const { appId, appVersion } = action.payload;
const currentApp = yield select(getCurrentApp);

if (
currentApp.definition.id === appId &&
currentApp.definition.version === appVersion &&
!currentApp.systemNeedsKeys
) {
return;
}
yield put({ type: 'FLUSH_SUBMIT' });
yield put({ type: 'GET_APP_START' });
try {
Expand Down

0 comments on commit dc6d0c8

Please sign in to comment.