Skip to content

Instantly share code, notes, and snippets.

@xavier-lc
Created July 31, 2025 17:13
Show Gist options
  • Save xavier-lc/005cf2cf3e37197e28b6514e1865f551 to your computer and use it in GitHub Desktop.
Save xavier-lc/005cf2cf3e37197e28b6514e1865f551 to your computer and use it in GitHub Desktop.
diff --git a/packages/core-data/src/tryit.ts b/packages/core-data/src/tryit.ts
new file mode 100644
index 0000000000..e858f6791f
--- /dev/null
+++ b/packages/core-data/src/tryit.ts
@@ -0,0 +1,10 @@
+/**
+ * Internal dependencies
+ */
+import type { UseEntityRecordsWithPermissionsType } from './hooks';
+import { unlock } from './lock-unlock';
+import { privateApis } from './private-apis';
+
+const { useEntityRecordsWithPermissions } = unlock< {
+ useEntityRecordsWithPermissions: UseEntityRecordsWithPermissionsType;
+} >( privateApis );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment