Skip to content

Commit

Permalink
0.0.53
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansglazunov committed Aug 26, 2024
1 parent 7a9900d commit ac12c53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions imports/client-handler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import isEqual from 'lodash/isEqual';
import React from 'react';
import { WatchLink } from './react-handler';
import { GoContextI, GoProvider, useGoCore } from './go';
import { useHandlersContext } from './hooks';
import { useHandlersContext, usePreload } from './hooks';
import classNames from 'classnames';

export class CatchErrors extends React.Component<{
Expand Down Expand Up @@ -105,6 +105,8 @@ export const ClientHandler = memo(function ClientHandler(_props: ClientHandlerPr
const go = useGoCore();
const goHandler = useHandlersGo();

const [isPreloaded, repreload] = usePreload();

const {
ErrorComponent,
UnhandledComponent,
Expand Down Expand Up @@ -135,8 +137,9 @@ export const ClientHandler = memo(function ClientHandler(_props: ClientHandlerPr
errorRenderer={(error, reset) => {
erroredResetRef.current = async () => {
// console.log('error reset', file.id);
const founded = await deep.select(file.id);
// const founded = await deep.select(file.id);
// console.log('error reset apply', founded, deep.minilinks.update(founded?.data));
await repreload();
reset();
}
return <div><ErrorComponent
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deep-foundation/perception-imports",
"version": "0.0.52",
"version": "0.0.53",
"license": "Unlicense",
"type": "module",
"scripts": {
Expand Down

0 comments on commit ac12c53

Please sign in to comment.