Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: resolve conflicts

gitstartccaa899fc95b
diff --cc studio/components/interfaces/Docs/ResourceContent.tsx
index 6fc63ae6b95,21e6a3dc5fb..efe0fec31df
--- a/studio/components/interfaces/Docs/ResourceContent.tsx
+++ b/studio/components/interfaces/Docs/ResourceContent.tsx
@@@ -222,66 -231,49 +231,51 @@@ const ResourceContent = (
</div>
</>
)}
- {!isView && (
- <>
- <h3 className="text-scale-1200 mt-4 px-6">Subscribe to changes</h3>
- <div className="doc-section">
- <article className="text ">
- <p>
- Supabase provides realtime functionality and broadcasts database changes to authorized
- users depending on Row Level Security (RLS) policies.
- </p>
- <p>
- <a href="https://supabase.com/docs/reference/javascript/subscribe" target="_blank">
- Learn more
- </a>
- </p>
- </article>
- <article className="code">
- <CodeSnippet
- selectedLang={selectedLang}
- snippet={Snippets.subscribeAll(resourceMeta.camelCase, resourceId)}
- />
- <CodeSnippet
- selectedLang={selectedLang}
- snippet={Snippets.subscribeInserts(resourceMeta.camelCase, resourceId)}
- />
- <CodeSnippet
- selectedLang={selectedLang}
- snippet={Snippets.subscribeUpdates(resourceMeta.camelCase, resourceId)}
- />
- <CodeSnippet
- selectedLang={selectedLang}
- snippet={Snippets.subscribeDeletes(resourceMeta.camelCase, resourceId)}
- />
- <CodeSnippet
- selectedLang={selectedLang}
- snippet={Snippets.subscribeEq(
- resourceMeta.camelCase,
- resourceId,
- 'column_name',
- 'someValue'
- )}
- />
- </article>
- </div>
- </>
++ {(methods.includes('DELETE') || methods.includes('POST') || methods.includes('PATCH')) && (
+ <>
+ <h3 className="text-scale-1200 mt-4 px-6">Subscribe to changes</h3>
+ <div className="doc-section">
+ <article className="text ">
+ <p>
+ Supabase provides realtime functionality and broadcasts database changes to
+ authorized users depending on Row Level Security (RLS) policies.
+ </p>
+ <p>
- <a href="https://supabase.com/docs/client/subscribe" target="_blank">
- Learn more.
++ <a href="https://supabase.com/docs/reference/javascript/subscribe" target="_blank">
++ Learn more
+ </a>
+ </p>
+ </article>
+ <article className="code">
+ <CodeSnippet
+ selectedLang={selectedLang}
+ snippet={Snippets.subscribeAll(resourceMeta.camelCase, resourceId)}
+ />
+ <CodeSnippet
+ selectedLang={selectedLang}
+ snippet={Snippets.subscribeInserts(resourceMeta.camelCase, resourceId)}
+ />
+ <CodeSnippet
+ selectedLang={selectedLang}
+ snippet={Snippets.subscribeUpdates(resourceMeta.camelCase, resourceId)}
+ />
+ <CodeSnippet
+ selectedLang={selectedLang}
+ snippet={Snippets.subscribeDeletes(resourceMeta.camelCase, resourceId)}
+ />
+ <CodeSnippet
+ selectedLang={selectedLang}
+ snippet={Snippets.subscribeEq(
+ resourceMeta.camelCase,
+ resourceId,
+ 'column_name',
+ 'someValue'
+ )}
+ />
+ </article>
+ </div>
+ </>
+ )}
- <>
- <h3 className="text-scale-1200 mt-4 px-6">Much more</h3>
- <div className="doc-section py-4">
- <article className="text ">
- <p>
- These docs are a work in progress! See our{' '}
- <a href="https://supabase.com/docs/" target="_blank">
- docs
- </a>{' '}
- for the additional functionality Supabase has to offer.
- </p>
- </article>
- <article className="code"></article>
- </div>
- </>
</>
)
}