refactor: react fast refresh

This commit is contained in:
cha0s 2024-01-10 04:49:00 -06:00
parent 4c7e83a53e
commit ba20f02ccd
13 changed files with 12 additions and 23 deletions

View File

@ -2,5 +2,6 @@
"packages": [ "packages": [
"packages/*" "packages/*"
], ],
"useNx": true,
"version": "3.0.0" "version": "3.0.0"
} }

View File

@ -4,7 +4,6 @@ import {join} from 'path';
import {JsonTabs, useJsonPatcher} from '@avocado/resource/persea'; import {JsonTabs, useJsonPatcher} from '@avocado/resource/persea';
import { import {
hot,
PropTypes, PropTypes,
React, React,
} from '@flecks/react'; } from '@flecks/react';
@ -77,4 +76,4 @@ Behaved.propTypes = {
path: PropTypes.string.isRequired, path: PropTypes.string.isRequired,
}; };
export default hot(module)(Behaved); export default Behaved;

View File

@ -3,7 +3,6 @@ import {join} from 'path';
import {Code, Number} from '@avocado/react'; import {Code, Number} from '@avocado/react';
import { import {
hot,
PropTypes, PropTypes,
React, React,
} from '@flecks/react'; } from '@flecks/react';
@ -70,4 +69,4 @@ Alive.propTypes = {
path: PropTypes.string.isRequired, path: PropTypes.string.isRequired,
}; };
export default hot(module)(Alive); export default Alive;

View File

@ -5,7 +5,6 @@ import {
Number, Number,
} from '@avocado/react'; } from '@avocado/react';
import { import {
hot,
PropTypes, PropTypes,
React, React,
} from '@flecks/react'; } from '@flecks/react';
@ -75,4 +74,4 @@ Directional.propTypes = {
path: PropTypes.string.isRequired, path: PropTypes.string.isRequired,
}; };
export default hot(module)(Directional); export default Directional;

View File

@ -1,4 +1,3 @@
'@avocado/graphics:./src': {}
'@flecks/core': {} '@flecks/core': {}
'@flecks/fleck': {} '@flecks/fleck': {}
'@flecks/react': {} '@flecks/react': {}

View File

@ -4,7 +4,6 @@ import {join} from 'path';
import {Code, Json} from '@avocado/react'; import {Code, Json} from '@avocado/react';
import {useJsonPatcher} from '@avocado/resource/persea'; import {useJsonPatcher} from '@avocado/resource/persea';
import { import {
hot,
PropTypes, PropTypes,
React, React,
} from '@flecks/react'; } from '@flecks/react';
@ -122,4 +121,4 @@ Collider.propTypes = {
path: PropTypes.string.isRequired, path: PropTypes.string.isRequired,
}; };
export default hot(module)(Collider); export default Collider;

View File

@ -12,7 +12,6 @@ import {
vectorRangePropType, vectorRangePropType,
} from '@avocado/math/persea'; } from '@avocado/math/persea';
import { import {
hot,
PropTypes, PropTypes,
React, React,
useState, useState,
@ -197,4 +196,4 @@ Emitted.propTypes = {
path: PropTypes.string.isRequired, path: PropTypes.string.isRequired,
}; };
export default hot(module)(Emitted); export default Emitted;

View File

@ -2,7 +2,6 @@ import {join} from 'path';
import {JsonTabs} from '@avocado/resource/persea'; import {JsonTabs} from '@avocado/resource/persea';
import { import {
hot,
memo, memo,
PropTypes, PropTypes,
React, React,
@ -55,4 +54,4 @@ Emitter.propTypes = {
path: PropTypes.string.isRequired, path: PropTypes.string.isRequired,
}; };
export default hot(module)(Emitter); export default Emitter;

View File

@ -5,7 +5,6 @@ import {join} from 'path';
import {useJsonPatcher} from '@avocado/resource/persea'; import {useJsonPatcher} from '@avocado/resource/persea';
import { import {
hot,
PropTypes, PropTypes,
React, React,
} from '@flecks/react'; } from '@flecks/react';
@ -114,4 +113,4 @@ Audible.propTypes = {
}; };
Audible.propTypes = {}; Audible.propTypes = {};
export default hot(module)(Audible); export default Audible;

View File

@ -7,7 +7,6 @@ import {Vector as VectorComponent} from '@avocado/math/persea';
import {Number} from '@avocado/react'; import {Number} from '@avocado/react';
import {JsonTabs, useJsonPatcher} from '@avocado/resource/persea'; import {JsonTabs, useJsonPatcher} from '@avocado/resource/persea';
import { import {
hot,
PropTypes, PropTypes,
React, React,
} from '@flecks/react'; } from '@flecks/react';
@ -87,4 +86,4 @@ Animated.propTypes = {
}; };
Animated.propTypes = {}; Animated.propTypes = {};
export default hot(module)(Animated); export default Animated;

View File

@ -17,7 +17,6 @@ import {
} from '@avocado/resource/persea'; } from '@avocado/resource/persea';
import { import {
classnames, classnames,
hot,
PropTypes, PropTypes,
React, React,
useCallback, useCallback,
@ -261,4 +260,4 @@ RoomComponent.propTypes = {
resource: PropTypes.any.isRequired, resource: PropTypes.any.isRequired,
}; };
export default hot(module)(RoomComponent); export default RoomComponent;

View File

@ -5,7 +5,6 @@ import {useJsonPatcher} from '@avocado/resource/persea';
import {LfoResult} from '@avocado/timing'; import {LfoResult} from '@avocado/timing';
import { import {
classnames, classnames,
hot,
PropTypes, PropTypes,
React, React,
useEffect, useEffect,
@ -164,4 +163,4 @@ EntitiesPage.propTypes = {
resource: PropTypes.any.isRequired, resource: PropTypes.any.isRequired,
}; };
export default hot(module)(EntitiesPage); export default EntitiesPage;

View File

@ -19,7 +19,6 @@ import {Vector as VectorComponent} from '@avocado/math/persea';
import {useJsonPatcher} from '@avocado/resource/persea'; import {useJsonPatcher} from '@avocado/resource/persea';
import { import {
classnames, classnames,
hot,
PropTypes, PropTypes,
React, React,
useCallback, useCallback,
@ -549,4 +548,4 @@ TilesPage.propTypes = {
resource: PropTypes.any.isRequired, resource: PropTypes.any.isRequired,
}; };
export default hot(module)(TilesPage); export default TilesPage;