Skip to content

Commit

Permalink
Defect fix
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed May 31, 2021
1 parent 9a577d0 commit 542d092
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
17 changes: 13 additions & 4 deletions .idea/workspace.xml

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.1.5",
"version": "1.1.6",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/cache.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const Cache = ({ values, namedStore, observers = [], children }: CachePro
const ref = useRef<CacheBag>();
console.log("Cache Creation: ", ref, ref && ref.current);

if (ref.current !== undefined || ref.current !== null) {
if (ref.current === undefined || ref.current === null) {
if (!!namedStore) {
let global: any = window;
if (!global[namedStore]) {
Expand Down

0 comments on commit 542d092

Please sign in to comment.