Skip to content

Commit

Permalink
fixed memory size value in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-karlovskiy committed Aug 15, 2019
1 parent 4844b38 commit 6c76a47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { useState, useEffect } from 'react';
const unsupportMessage = 'The Memory Status API is not supported on this platform.';

// Tune these for your application
const MAX_MEMORY_LIMIT = 50 * 1048576; // 20MB
const MAX_MEMORY_LIMIT = 50 * 1048576; // 50MB
const MAX_PERCENT_THRESHOLD = 90;

const useMemoryStatus = () => {
Expand Down
2 changes: 1 addition & 1 deletion cra-memory-considerate-loading/src/utils/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { useState, useEffect } from 'react';
const unsupportMessage = 'The Memory Status API is not supported on this platform.';

// Tune these for your application
const MAX_MEMORY_LIMIT = 50 * 1048576; // 20MB
const MAX_MEMORY_LIMIT = 50 * 1048576; // 50MB
const MAX_PERCENT_THRESHOLD = 90;

const useMemoryStatus = () => {
Expand Down
2 changes: 1 addition & 1 deletion hooks/memory/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { useState, useEffect } from 'react';
export const unsupportMessage = 'The Memory Status API is not supported on this platform.';

// Tune these for your application
export const MAX_MEMORY_LIMIT = 50 * 1048576; // 20MB
export const MAX_MEMORY_LIMIT = 50 * 1048576; // 50MB
export const MAX_PERCENT_THRESHOLD = 90;

const useMemoryStatus = () => {
Expand Down

0 comments on commit 6c76a47

Please sign in to comment.