rejoicing when?
the world came to be before there were watery depths
when He gave the sea its boundary
so the waters would not overstep His command
(Proverbs 8:29)
wisdom was present when? at the very beginning, when the world came to be,
when there were no watery depths
(Proverbs 8:23-24)
the world came to be before there were watery depths
IMO, that chapter is about wisdom and wisdom describes how it was before creation and describes the events during creation and how He (Wisdom) to part in creation and rejoiced but now advices man to seek Him (Wisdom). Wisdom rejoiced in mankind during creation.