MCPcopy Create free account
hub / github.com/dailydotdev/apps / onOpenModal

Function onOpenModal

packages/shared/src/hooks/usePostModalNavigation.ts:206–213  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

204 );
205
206 const onOpenModal = (index: number) => {
207 cancelRestore.current?.();
208 if (!pmid) {
209 scrollPositionOnFeed.current = window.scrollY;
210 }
211
212 onChangeSelected(index);
213 };
214
215 const getPostPosition = () => {
216 const firstPost = items.findIndex(isPostItem);

Callers 2

onPostModalOpenFunction · 0.50
onBriefClickFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected