Skip to content

Commit

Permalink
fix token
Browse files Browse the repository at this point in the history
  • Loading branch information
atellmer committed Nov 24, 2022
1 parent 8fda695 commit c05b291
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dark-engine/core",
"version": "0.9.0",
"version": "0.9.1",
"description": "Dark is lightweight (10 Kb gzipped) component-and-hook-based UI rendering engine for javascript apps without dependencies and written in Typescript 💫",
"author": "AlexPlex",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/use-effect/use-effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function createEffect(token: Symbol, store: typeof effectsStore) {

function hasEffects(fiber: Fiber) {
const { values } = fiber.hook as Hook<HookValue>;
const hasEffect = values.some(x => x.token === token);
const hasEffect = values.some(x => x?.token === token);

return hasEffect;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/umd/dark-core.development.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/umd/dark-core.development.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/core/umd/dark-core.production.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/core/umd/dark-core.production.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/platform-browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dark-engine/platform-browser",
"version": "0.9.0",
"version": "0.9.1",
"description": "Dark is lightweight (10 Kb gzipped) component-and-hook-based UI rendering engine for javascript apps without dependencies and written in Typescript 💫",
"author": "AlexPlex",
"license": "MIT",
Expand Down

0 comments on commit c05b291

Please sign in to comment.