Skip to content

Docs: Network Status Example missing key detail #525

@JCopeland-PIFSC

Description

@JCopeland-PIFSC

Bug Description

In the Network Status Example Step 1 shows the useOfflineStatus hook needs to be imported.
Then in Step 2 it shows the use of the isOffline state.

What is missing is the invocation of the hook to get access to the isOffline variable.

  const { isOffline } = useOfflineStatus();

Steps to Reproduce

Read the documentation.

Expected Behavior

Show all relevant steps needed for the example.

Be sure to include some context to where the user would invoke the hook.

  function App() {
      const { isOffline } = useOfflineStatus();

Screenshots

No response

System Information

No response

Additional Information

No response

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions