Skip to content

Commit

Permalink
Update doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Apr 29, 2024
1 parent 17853a4 commit 63aea8f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/r18gs/src/plugins/persist-and-sync.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { Plugin } from "..";

/**
* A plugin that persists and syncs RGS store between tabs.
*
* @returns A plugin that persists and syncs a value between tabs.
*/
function persistAndSyncPlugin<T>(): Plugin<T> {
return {
init(key, value, _, mutate) {
Expand Down
5 changes: 5 additions & 0 deletions packages/shared-ui/src/root/persistant-counter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
import { ChangeEvent, useCallback } from "react";
import { useMyPersistantCounterStore } from "../../hooks/use-persistant-counter";

/**
* Persistant Counter
*
* @returns {JSX.Element}
*/
export default function PersistantCounter() {
const [count, setCount] = useMyPersistantCounterStore();

Expand Down

0 comments on commit 63aea8f

Please sign in to comment.