-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #286 from Crossbell-Box/develop
Develop
- Loading branch information
Showing
8 changed files
with
48 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"xlog": patch | ||
--- | ||
|
||
Hide the splash screen after the navigation is rendered. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"xlog": patch | ||
--- | ||
|
||
Only reload the feed in the shorts page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
import { useContext } from "react"; | ||
import { useCallback, useContext } from "react"; | ||
|
||
import { PostIndicatorContext } from "@/context/post-indicator-context"; | ||
import { postIndicatorSubscribers } from "@/providers/post-indicator-provider"; | ||
|
||
export const usePostIndicatorStore = () => { | ||
return useContext(PostIndicatorContext); | ||
const { isProcessing, addPostTask } = useContext(PostIndicatorContext); | ||
|
||
const subscribe = useCallback((callback) => { | ||
postIndicatorSubscribers.add(callback); | ||
return () => { | ||
postIndicatorSubscribers.delete(callback); | ||
}; | ||
}, []); | ||
|
||
return { isProcessing, addPostTask, subscribe }; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters